Commit c7e203d2 authored by Klaatu von Schlacker's avatar Klaatu von Schlacker
Browse files

added some user friendly stuff so the user gets assurance that multiple files...

added some user friendly stuff so the user gets assurance that multiple files have been trashed when there are more than one argument
parent 2e46f436
...@@ -14,8 +14,15 @@ if [ "X$ARG" == "X.trash" ] ...@@ -14,8 +14,15 @@ if [ "X$ARG" == "X.trash" ]
if [ "X$ARG" != "X" ] if [ "X$ARG" != "X" ]
then then
mv $ARG ~/.trash/ mv $ARG ~/.trash/
RETURN=$(basename $ARG) # useless user friendly reassuring fluffy stuff
echo "$RETURN moved to Trash. Your Trash is currently $(du -h ~/.trash | cut -f1 | tail -n -1) in size." RETURN=$(basename $ARG 2> /dev/null)
if [ "X$2" != "X" ]
then echo "Multiple files have been moved to the trash."
else
echo "$RETURN has been moved to the trash."
fi
echo "Your Trash is currently $(du -h ~/.trash | cut -f1 | tail -n -1) in size."
else else
echo "Your trash is currently $(du -h ~/.trash | cut -f1) in size." echo "Your trash is currently $(du -h ~/.trash | cut -f1) in size."
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment