diff --git a/src/password-store.sh b/src/password-store.sh index 02d3fb0..013cf64 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -67,7 +67,7 @@ set_age_recipients() { return fi - local current="$PREFIX/$1" + local current="$PREFIX${1:+/$1}" while [[ $current != "$PREFIX" && ! -f $current/.age-recipients ]]; do current="${current%/*}" done