Update vaultwarden-update.sh

stop execution instantly if a query exits while having a non-zero status.
This commit is contained in:
tteckster 2022-11-16 11:19:16 -05:00 committed by GitHub
parent 9e16245ed0
commit e69b1a461a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e
VAULT=$(curl -s https://api.github.com/repos/dani-garcia/vaultwarden/releases/latest | VAULT=$(curl -s https://api.github.com/repos/dani-garcia/vaultwarden/releases/latest |
grep "tag_name" | grep "tag_name" |
awk '{print substr($2, 2, length($2)-3) }') awk '{print substr($2, 2, length($2)-3) }')