use function instead of echo

This commit is contained in:
Daniel Hansson 2019-07-03 21:13:18 +02:00 committed by GitHub
parent 1d9c6c807c
commit f82b1db68a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
lib.sh
View File

@ -722,7 +722,7 @@ fi
download_verify_nextcloud_stable() {
while [ -z "$NCVERSION" ]
do
echo "The variable 'NCVERSION' is empty, fetching it again..."
print_text_in_color "$Cyan" "The variable 'NCVERSION' is empty, fetching it again..."
# shellcheck source=lib.sh
NC_UPDATE=1 . <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh)
unset NC_UPDATE