From f6059831292a214b7dd5608616afd5be4b3ebefd Mon Sep 17 00:00:00 2001 From: bryan Date: Sun, 26 Apr 2020 23:20:47 -0400 Subject: [PATCH] Fix derp and make apt-get noisier --- installJRMC | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/installJRMC b/installJRMC index 087a603..f954217 100755 --- a/installJRMC +++ b/installJRMC @@ -302,12 +302,12 @@ EOF _pkg_query(){ _ifSudo rpm -q "$@"; } _firewall_cmd(){ _ifSudo firewall-cmd "$@"; } elif [[ "$ID" =~ ^(ubuntu|debian)$ ]]; then - _pkg_install(){ _ifSudo apt-get install -y "$@"; } - _pkg_reinstall(){ _ifSudo apt-get reinstall -y "$@"; } - _pkg_install_nogpg(){ _ifSudo apt-get install -y "$@"; } - _pkg_remove(){ _ifSudo apt-get remove -y "$@"; } - _pkg_update(){ _ifSudo apt-get update -y; } - _pkg_query(){ _ifSudo dpkg -l "$@"; } + _pkg_install(){ _ifSudo apt-get install -y -q0 "$@"; } + _pkg_reinstall(){ _ifSudo apt-get reinstall -y -q0 "$@"; } + _pkg_install_nogpg(){ _ifSudo apt-get install -y -q0 "$@"; } + _pkg_remove(){ _ifSudo apt-get remove -y -q0 "$@"; } + _pkg_update(){ _ifSudo apt-get update -y -q0; } + _pkg_query(){ _ifSudo dpkg -s "$@"; } _firewall_cmd(){ _ifSudo ufw "$@"; } fi @@ -826,6 +826,8 @@ EOF" if [[ $? -ne 0 || ! -f "$_mcrpm" ]]; then err "Build failed. Exiting..." exit 1 + else + echo "Build successful. The RPM file is located at: $_mcrpm" fi fi }