From e69b1a461a4e4d6a2f5a121c183e733aa0f2514e Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 16 Nov 2022 11:19:16 -0500 Subject: [PATCH] Update vaultwarden-update.sh stop execution instantly if a query exits while having a non-zero status. --- misc/vaultwarden-update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/vaultwarden-update.sh b/misc/vaultwarden-update.sh index 25bc07ca..60130d3c 100644 --- a/misc/vaultwarden-update.sh +++ b/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) }')