Merge branch 'master' of gitea.tforgione.fr:tforgione/dotfiles

This commit is contained in:
Thomas Forgione 2019-04-17 09:37:57 +02:00
commit abb4a02a9a
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ update-system() {
sudoresult=$(sudo -nv 2>&1) sudoresult=$(sudo -nv 2>&1)
if [ $? -eq 0 ]; then 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 elif echo $sudoresult | grep -q '^sudo:'; then
echo "\033[32;1m=== Starting system update, please enter your password ===\033[0m" echo "\033[32;1m=== Starting system update, please enter your password ===\033[0m"
sudo true sudo true