From 7fc0bddb76b637102699a2e85894a30456342ec1 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 17 Apr 2019 16:37:11 +0200 Subject: [PATCH] Fix bug --- zsh/bin/update | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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