commit 1694b56b9bf123e252de6171a5496e05a62b4b11 parent 9d6f5a027a87e43fd4019df60c69ca70456cab1f Author: Natasha Kerensikova <natgh@instinctive.eu> Date: Sun, 3 Nov 2024 10:50:01 +0000 Multi-arguemnt copy and move commands are corrected Diffstat:
M | src/pashage.sh | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/pashage.sh b/src/pashage.sh @@ -1067,16 +1067,16 @@ cmd_copy_move() { check_sneaky_paths "$@" if [ $# -gt 2 ]; then - DEST="$1" + SHARED_DEST="$1" shift for ARG in "$@"; do shift - set -- "$@" "${DEST}" - DEST="${ARG}" + set -- "$@" "${SHARED_DEST}" + SHARED_DEST="${ARG}" done for ARG in "$@"; do - do_copy_move "${ARG}" "${DEST%/}/" + do_copy_move "${ARG}" "${SHARED_DEST%/}/" done else do_copy_move "$@"