Skip to content
Snippets Groups Projects
Verified Commit 4f74ff9a authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Fix fpaste with spaces

parent f26999fc
No related branches found
No related tags found
1 merge request!4Resolve "Add unit tests"
Pipeline #6367 passed
......@@ -2,3 +2,4 @@ a
b
c
dest
a b c
#!/bin/bash
set -ex
femtpy
touch "a b c"
fcopy "a b c"
test -f a\ b\ c
test -f ~/.clipboard/a\ b\ c
#!/bin/bash
set -ex
femtpy
touch "a b c"
fcut "a b c"
test ! -f a\ b\ c
test -f ~/.clipboard/a\ b\ c
#!/bin/bash
set -ex
femtpy
touch "a b c"
fcut "a b c"
test ! -f a\ b\ c
fpaste
test -f a\ b\ c
......@@ -9,10 +9,10 @@ if [[ "$#" -gt "1" ]]; then
fi
mkdir -p ~/.clipboard
files=$(find ~/.clipboard -maxdepth 1 -mindepth 1)
files="$(find ~/.clipboard -maxdepth 1 -mindepth 1)"
if [[ -z "$files" ]]; then
echo "Clipboard is empty"
else
mv $(find ~/.clipboard -maxdepth 1 -mindepth 1) "${1:-.}"
find ~/.clipboard -maxdepth 1 -mindepth 1 -exec mv {} "${1:-.}" \;
fi;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment