Browse Source

Update vaultwarden-update.sh

stop execution instantly if a query exits while having a non-zero status.
tteckster 2 năm trước cách đây
mục cha
commit
e69b1a461a
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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) }')