This commit is contained in:
Thomas Forgione 2019-04-17 16:37:11 +02:00
parent 22c1a395af
commit 7fc0bddb76
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 1 additions and 3 deletions

View File

@ -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