small pixel drawing of a pufferfish pa

minor pa-pass fixes
arĉi arcxi@dismail.de
Fri, 05 Jul 2024 16:39:15 +0200
commit

f63aab4e7b440d86779839304178b7851ae6e23a

parent

c049af899ca8f1b636c85a8fc674532c4abda97f

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M contrib/pa-passcontrib/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