tweak
This commit is contained in:
@@ -2,12 +2,11 @@
|
|||||||
|
|
||||||
# fresh update on apt in Ubuntu
|
# fresh update on apt in Ubuntu
|
||||||
echo "Updating and upgrading local packages..."
|
echo "Updating and upgrading local packages..."
|
||||||
#apt-add-repository universe >/dev/null 2>/dev/null && apt update >/dev/null 2>/dev/null && apt upgrade -y >/dev/null 2>/dev/null
|
apt-add-repository universe >/dev/null 2>/dev/null && apt update >/dev/null 2>/dev/null
|
||||||
apt-add-repository universe && apt update && apt upgrade -y
|
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
echo "Done.\n"
|
echo "Done.\n"
|
||||||
else
|
else
|
||||||
echo "Failed to add universal repository, update apt repository, or upgrade - possibly bad network connection"
|
echo "Failed to add universal repository, update apt repository - possibly bad network connection"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user