diff --git a/zsh/bin/update b/zsh/bin/update index afd9b8b..344ad24 100755 --- a/zsh/bin/update +++ b/zsh/bin/update @@ -71,7 +71,8 @@ update-system() { sudoresult=$(sudo -nv 2>&1) if [ $? -eq 0 ]; then - # Nothing to do + echo "\033[33;1m=== You are not a sudoer, skipping system update... ===\033[0m" + return 1 elif echo $sudoresult | grep -q '^sudo:'; then echo "\033[32;1m=== Starting system update, please enter your password ===\033[0m" sudo true