Cosmetics.
[scripts.git] / trash.sh
index aaef037..550b574 100755 (executable)
--- a/trash.sh
+++ b/trash.sh
@@ -22,7 +22,7 @@ set -e
 # Move things to a newly created trash directory in /tmp/. Re-use an
 # existing one if it is less than 5min old.
 
-TRASH=$(find /tmp/ -maxdepth 1 -mmin -5 -type d -name "trash*" | sort | tail -1)
+TRASH=$(find /tmp/ -maxdepth 1 -mmin -15 -type d -name "trash*" | sort | tail -1)
 
 if [[ ${TRASH} ]]; then
     echo "Re-use ${TRASH}"
@@ -32,6 +32,4 @@ else
     echo "Created ${TRASH}:"
 fi
 
-mv $* ${TRASH}
-
-# ls -ad ${TRASH}/*
+mv "$@" ${TRASH}