minor pa-pass fixes
arĉi arcxi@dismail.de
Fri, 05 Jul 2024 16:39:15 +0200
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
contrib/pa-pass
→
contrib/pa-pass
@@ -17,10 +17,10 @@
find "$PASSWORD_STORE_DIR" -name '*.gpg' | while read -r passfile; do name=$(printf %s "${passfile#"$PASSWORD_STORE_DIR/"}" | sed 's/\.gpg$//') mkdir -p "$PA_DIR/$(dirname "./$name")" - gpg2 -d "$passfile" | $age -R "$basedir/recipients" -o "$PA_DIR/$name.age" - printf '%s\n' "Saved '$name' to the store." + gpg2 -d "$passfile" | $age -R "$basedir/recipients" -o "$PA_DIR/$name.age" && + printf '%s\n' "Saved '$name' to the store." done -if [ -z "${PA_NOGIT+x}" ] && [ -d "$PA_DIR/.git" ] && command -v git >/dev/null 2>&1; then +if [ -z "${PA_NOGIT+x}" ] && command -v git >/dev/null 2>&1; then git -C "$PA_DIR" add . && git -C "$PA_DIR" commit -m "migrate from pass" fi