diff --git a/tux.sh b/tux.sh index f48a214..4640a9a 100755 --- a/tux.sh +++ b/tux.sh @@ -81,7 +81,9 @@ if [ "${MANAGER}" = "apt" ];then reinstallCmd="${MANAGER} install --reinstall" removeCmd="${MANAGER} remove" searchCmd="${MANAGER} search" - supCmd="${MANAGER} update && ${MANAGER} upgrade" + updateCmd="${MANAGER} update" + upgradeCmd="${MANAGER} upgrade" + supCmd="${MANAGER} update ; sudo ${MANAGER} upgrade" elif [ "${MANAGER}" = "dnf" ];then installCmd="${MANAGER} install" @@ -161,7 +163,7 @@ s | -s | search) -Syu | -Su | sup) - ${supCmd} + ${updateCmd} && ${upgradeCmd} ;; r | -r | remove) @@ -182,4 +184,4 @@ r | -r | remove) echo -e "-Syu,-Su,sup Sync repodata and upgrade all\n" -esac \ No newline at end of file +esac