Workaround ubuntu update issue

This commit is contained in:
mollusk 2018-08-28 15:41:54 -07:00
parent 668d64ca2a
commit 0103c4458f

8
tux.sh
View File

@ -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
esac