aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcopy.sh5
-rwxr-xr-xmove.sh5
2 files changed, 4 insertions, 6 deletions
diff --git a/copy.sh b/copy.sh
index 402d84e..0e8bb38 100755
--- a/copy.sh
+++ b/copy.sh
@@ -1,7 +1,6 @@
#!/bin/sh
-# Receives a filename as argument and copies it to a folder selecting it with fzf
+# Receives filenames as arguments and copies them to a folder selected with fzf
-filename="$1"
target="$(selectPathFzf.sh "Copy to: ")"
-cp "$filename" "$target"
+cp "$@" "$target"
diff --git a/move.sh b/move.sh
index 42b3384..fd0861a 100755
--- a/move.sh
+++ b/move.sh
@@ -1,7 +1,6 @@
#!/bin/sh
-# Receives a filename as argument and moves it to a folder selecting it with fzf
+# Receives filenames as arguments and moves them to a folder selected with fzf
-filename="$1"
target="$(selectPathFzf.sh "Move to: ")"
-mv "$filename" "$target"
+mv "$@" "$target"