diff --git a/zsh/bin/update b/zsh/bin/update index 4d8920b..275fa6d 100755 --- a/zsh/bin/update +++ b/zsh/bin/update @@ -68,11 +68,9 @@ _check_date() { update-system() { # Ask for sudo right now - sudoresult=$(sudo -nv 2>&1) + sudoresult=$(sudo -n -l true 2>&1) if [ $? -eq 0 ]; then - # Nothing to do - elif echo $sudoresult | grep -q '^sudo:'; then echo "\033[32;1m=== Starting system update, please enter your password ===\033[0m" sudo true if [ $? -ne 0 ]; then