make fetch_lib a bit slicker (#1467)

This commit is contained in:
szaimen 2020-09-16 19:37:44 +02:00 committed by GitHub
parent 7339990cd9
commit 15ca3261f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,12 +26,10 @@ then
print_text_in_color "$IRed" "You don't seem to have an internet connection and the local lib isn't available. Hence you cannot run this script."
exit 1
fi
else
if ! [ -f /var/scripts/nextcloud-startup-script.sh ]
then
print_text_in_color "$ICyan" "Updating lib..."
curl -sfL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh -o /var/scripts/lib.sh
fi
elif ! [ -f /var/scripts/nextcloud-startup-script.sh ]
then
print_text_in_color "$ICyan" "Updating lib..."
curl -sfL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh -o /var/scripts/lib.sh
fi
# shellcheck source=lib.sh