Skip to content

Commit

Permalink
fix import keys hook using unbound variable
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5a4 authored and Mic92 committed Jan 31, 2025
1 parent 015d461 commit 4c12519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/sops-import-keys-hook/sops-import-keys-hook.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sopsImportKeysHook() {
local key dir
if [ -n "${sopsCreateGPGHome}" ]; then
if [ -v sopsCreateGPGHome ] && [ -n "${sopsCreateGPGHome}" ]; then
export GNUPGHOME=${sopsGPGHome:-$(pwd)/.git/gnupg}
mkdir -m 700 -p $GNUPGHOME
fi
Expand Down

0 comments on commit 4c12519

Please sign in to comment.