Browse Source

Update vaultwarden-update.sh

stop execution instantly if a query exits while having a non-zero status.
tteckster 2 years ago
parent
commit
e69b1a461a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      misc/vaultwarden-update.sh

+ 1 - 0
misc/vaultwarden-update.sh

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