diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-01-15 21:14:52 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-01-15 21:14:52 +0100 |
| commit | f545ad724d13b889a068e4e0b82b6e2590bdcd44 (patch) | |
| tree | 0b348a1c6dd576d09746b4fb80b1c092effd0008 /trashrm | |
| parent | 3ae50860f445752ba20751835b332d21ae2d2cb9 (diff) | |
| download | scripts-f545ad724d13b889a068e4e0b82b6e2590bdcd44.tar.gz scripts-f545ad724d13b889a068e4e0b82b6e2590bdcd44.zip | |
Fixed bug in removing files with spaces in name
Diffstat (limited to '')
| -rwxr-xr-x | trashrm | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -6,4 +6,4 @@ trashfolder=${TRASH:-$XDG_DATA_HOME/mytrash} | |||
| 6 | thisfolder="$trashfolder/$(date +'%Y-%m-%d-%s')" | 6 | thisfolder="$trashfolder/$(date +'%Y-%m-%d-%s')" |
| 7 | 7 | ||
| 8 | mkdir -p "$thisfolder" | 8 | mkdir -p "$thisfolder" |
| 9 | mv $@ "$thisfolder" | 9 | mv "$@" "$thisfolder" |
