From 7714ea79c24ef0480f17fbe4899ac149d210f719 Mon Sep 17 00:00:00 2001 From: Niklas <39500356+broizter@users.noreply.github.com> Date: Wed, 8 May 2024 13:19:06 +0200 Subject: [PATCH] Added missing binary environemnt variable --- bitwardenbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitwardenbackup.sh b/bitwardenbackup.sh index 8280ede..4d703cd 100755 --- a/bitwardenbackup.sh +++ b/bitwardenbackup.sh @@ -9,7 +9,7 @@ BW_BINARY=/path/to/bitwarden-cli/bin ############ END OF CONFIGURATION ################ # Variables used later in script. Not meant to be changed. -export BW_SESSION=$(bw unlock "$PASSWORD" --raw) +export BW_SESSION=$("$BW_BINARY" unlock "$PASSWORD" --raw) PARENTS=$("$BW_BINARY" list items | jq -r '.[] | select(.attachments) | .id') JSONFILE="$OUTPUTFOLDER"/vault.json EXIT=0