From 0103c4458fb3076fd05f7030173f61bcfcb158a2 Mon Sep 17 00:00:00 2001 From: mollusk Date: Tue, 28 Aug 2018 15:41:54 -0700 Subject: [PATCH] Workaround ubuntu update issue --- tux.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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