Commit 53e40a19 authored by Klaatu's avatar Klaatu
Browse files

re-fixed SPACE problem. not that it was broken per se, but _ was broken.

parent 6a681a27
...@@ -98,7 +98,7 @@ done ...@@ -98,7 +98,7 @@ done
# not sure if that is appropriate either. # not sure if that is appropriate either.
# sanitize input filenames # sanitize input filenames
ARG=${@// /_} ARG=${@// /__+trash+__}
set -e set -e
RUBBISH=(${ARG}) RUBBISH=(${ARG})
...@@ -110,7 +110,7 @@ fi ...@@ -110,7 +110,7 @@ fi
# pitch it # pitch it
if [ "X$ARG" != "X" ]; then if [ "X$ARG" != "X" ]; then
for waste in ${RUBBISH[*]} ; do for waste in ${RUBBISH[*]} ; do
$ACT $VERBOSE "$( echo "${waste}" | sed 's%_%\ %g' )" $BASKET/files/${waste} ; $ACT $VERBOSE "$( echo "${waste}" | sed 's%__+trash+__%\ %g' )" $BASKET/files/${waste} ;
echo "[Trash Info]" > $BASKET/info/${waste}.trashinfo echo "[Trash Info]" > $BASKET/info/${waste}.trashinfo
echo "Path="$(realpath "${waste}") >> $BASKET/info/${waste}.trashinfo echo "Path="$(realpath "${waste}") >> $BASKET/info/${waste}.trashinfo
echo "DeletionDate=$(date +%Y-%m-%dT%T)" >> $BASKET/info/${waste}.trashinfo echo "DeletionDate=$(date +%Y-%m-%dT%T)" >> $BASKET/info/${waste}.trashinfo
......
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