Skip to content

Commit

Permalink
Update run_once_before_decrypt-private-key.sh
Browse files Browse the repository at this point in the history
Add my standard bash sets at the top
  • Loading branch information
steveno authored Sep 4, 2024
1 parent 2a6bf38 commit 9489d50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run_once_before_decrypt-private-key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Any copyright is dedicated to the Public Domain.
# https://creativecommons.org/publicdomain/zero/1.0/

set -o nounset
set -o errexit
set -o pipefail

if [ ! -f "/home/steveno/.config/chezmoi/key.txt" ]; then
mkdir -p "/home/steveno/.config/chezmoi"
chezmoi age decrypt --output "/home/steveno/.config/chezmoi/key.txt" --passphrase "{{ .chezmoi.sourceDir }}/key.txt.age"
Expand Down

0 comments on commit 9489d50

Please sign in to comment.