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

fixed renaming dest file to avoid clobbers. turns out i needed quotes.

parent c7bd8da6
......@@ -19,7 +19,7 @@ ARG="$@"
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
BASKET=~/.trash
BASKET=~/.local/share/Trash/files
CHECK=$(ls -a ~ | grep -i $BASKET)
if [ ! -d " " ]
......@@ -34,7 +34,7 @@ if [ "X$ARG" == "X$BASKET" ]
else
if [ "X$ARG" != "X" ]
then
for junk in $ARG; do mv -b $junk $BASKET/$junk_$(date | cut -f 2-5 -d ' ' | tr ' ' '_' | tr ':' '.') || exit 1 ; done
for junk in $ARG; do mv -b $junk $BASKET/"$junk"_$(date | cut -f 2-5 -d ' ' | tr ' ' '_' | tr ':' '.') || exit 1 ; done
# user friendly reassuring fluffy stuff
RETURN="$ARG"
if [ "X$2" != "X" ]
......
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