mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-17 18:46:43 +01:00
Make sure "generate-stackbrew-library.sh" fails if there's some kind of network error (and thus "$latest" cannot be determined properly)
This commit is contained in:
parent
71199bd69a
commit
20694c47e7
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -Eeuo pipefail
|
||||||
|
|
||||||
self="$(basename "$BASH_SOURCE")"
|
self="$(basename "$BASH_SOURCE")"
|
||||||
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||||||
|
@ -40,7 +40,7 @@ join() {
|
||||||
echo "${out#$sep}"
|
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:]]\+\)\+" \
|
| grep -o "\(Version\|Release\)\s\+[[:digit:]]\+\(.[[:digit:]]\+\)\+" \
|
||||||
| awk '{ print $2 }' \
|
| awk '{ print $2 }' \
|
||||||
| sort -uV \
|
| sort -uV \
|
||||||
|
|
Loading…
Reference in a new issue