commit 79030eb9fcb0a47f1023dba5038d88856189a65f parent 5ac08e37d8ad58cfc2e18ba1b92269660bb653c8 Author: Natasha Kerensikova <natgh@instinctive.eu> Date: Sun, 15 Sep 2024 15:47:35 +0000 Empty source directory is removed after moving files Diffstat:
M | src/pashage.sh | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/pashage.sh b/src/pashage.sh @@ -359,6 +359,7 @@ do_copy_move_dir() { done unset ARG + rmdir -p -- "${PREFIX}/$1" 2>/dev/null || true fi } @@ -505,7 +506,7 @@ do_delete() { scm_begin scm_rm "${TARGET}" scm_commit "Remove ${NAME} from store." - rmdir -p -- "$(dirname "${PREFIX}/${TARGET}")" 2>/dev/null || true + rmdir -p -- "$(dirname "${PREFIX}/${TARGET}")" 2>/dev/null || true } # Edit a secret interactively