mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
make fetch_lib a bit slicker (#1467)
This commit is contained in:
parent
7339990cd9
commit
15ca3261f1
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user