use --silent for install_package()

This commit is contained in:
2024-11-04 11:40:21 -05:00
parent 2566491f82
commit d9b5657c67

View File

@@ -1613,7 +1613,7 @@ main() {
acquire_deb || { err "Could not download Media Center DEB package"; return 1; } acquire_deb || { err "Could not download Media Center DEB package"; return 1; }
if [[ $BUILD_TARGET =~ (centos|fedora|suse) || $CREATEREPO_TARGET =~ (centos|fedora|suse) ]]; then if [[ $BUILD_TARGET =~ (centos|fedora|suse) || $CREATEREPO_TARGET =~ (centos|fedora|suse) ]]; then
install_package "dpkg" "rpm-build" install_package dpkg rpm-build
[[ -d $OUTPUT_DIR/SPECS ]] || execute mkdir -p "$OUTPUT_DIR/SPECS" [[ -d $OUTPUT_DIR/SPECS ]] || execute mkdir -p "$OUTPUT_DIR/SPECS"
build_rpm build_rpm
fi fi
@@ -1693,9 +1693,9 @@ download() {
elif command -v curl &>/dev/null; then elif command -v curl &>/dev/null; then
download_cmd=(curl --silent --location) download_cmd=(curl --silent --location)
else else
if install_package --quiet wget; then if install_package --silent wget; then
download_cmd=(wget --quiet) download_cmd=(wget --quiet)
elif install_package --quiet curl; then elif install_package --silent curl; then
download_cmd=(curl --silent --location) download_cmd=(curl --silent --location)
else else
err "Unable to install wget or curl" err "Unable to install wget or curl"