From 20694c47e7f2f7ab8946767b1dfcc7ff5e582534 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 26 Apr 2017 13:14:40 -0700 Subject: [PATCH] Make sure "generate-stackbrew-library.sh" fails if there's some kind of network error (and thus "$latest" cannot be determined properly) --- generate-stackbrew-library.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh index 25dab107..236a3900 100755 --- a/generate-stackbrew-library.sh +++ b/generate-stackbrew-library.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -e +set -Eeuo pipefail self="$(basename "$BASH_SOURCE")" cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" @@ -40,7 +40,7 @@ join() { echo "${out#$sep}" } -latest=$(curl -sSL 'https://nextcloud.com/changelog/' |tac|tac \ +latest=$(curl -fsSL 'https://nextcloud.com/changelog/' |tac|tac \ | grep -o "\(Version\|Release\)\s\+[[:digit:]]\+\(.[[:digit:]]\+\)\+" \ | awk '{ print $2 }' \ | sort -uV \