fix mv
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Kim Oliver Drechsel 2021-09-21 18:40:04 +02:00
parent 20243b5564
commit 736a53bad0

View File

@ -10,11 +10,11 @@ trash_list() {
}
trash_put() {
for i in "$@"; do
for FILE in $@; do
# Store old filepath for later restore
echo "$i $(readlink -f $i)" >> "$FILE_PATHS_FILE"
echo "$FILE $(readlink -f "$FILE")" >> "$FILE_PATHS_FILE"
done
mv -uv "$*" "$HOME"/.trash/
mv -uv $* "$HOME"/.trash/
}
trash_empty() {