Return instead of exit
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ update() {
|
|||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Could not get sudo..."
|
echo "Could not get sudo..."
|
||||||
exit 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "\033[32;1m=== Updating system ===\033[0m"
|
echo "\033[32;1m=== Updating system ===\033[0m"
|
||||||
|
|||||||
Reference in New Issue
Block a user