commit 07dd233c57ca655bfd90a8a1865ebb9aafe9095b parent 2952315df5c00ebd8da437e6a04fd02d0932bec5 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu, 22 Sep 2022 08:36:11 +0200 Changed rm folder name Diffstat:
M | trash | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/trash b/trash @@ -25,7 +25,8 @@ case "$1" in ls $trashfolder ;; rm) - thisfolder="$trashfolder/$(date +'%Y-%m-%d-%s')" + curdir=$(pwd | sed 's|.*/||') + thisfolder="$trashfolder/$(date +'%Y-%m-%d-%s')-$curdir" mkdir -p "$thisfolder" shift 1 mv "$@" "$thisfolder"