commit f545ad724d13b889a068e4e0b82b6e2590bdcd44
parent 3ae50860f445752ba20751835b332d21ae2d2cb9
Author: Sebastiano Tronto <sebastiano.tronto@gmail.com>
Date: Sat, 15 Jan 2022 21:14:52 +0100
Fixed bug in removing files with spaces in name
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/trashrm b/trashrm
@@ -6,4 +6,4 @@ trashfolder=${TRASH:-$XDG_DATA_HOME/mytrash}
thisfolder="$trashfolder/$(date +'%Y-%m-%d-%s')"
mkdir -p "$thisfolder"
-mv $@ "$thisfolder"
+mv "$@" "$thisfolder"