mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 22:24:59 +08:00
fix import keys hook using unbound variable
This commit is contained in:
parent
015d461c16
commit
4c1251904d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue