Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
trashy
Trashy
Commits
53e40a19
Commit
53e40a19
authored
Aug 07, 2014
by
Klaatu
Browse files
re-fixed SPACE problem. not that it was broken per se, but _ was broken.
parent
6a681a27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
trash
trash
+2
-2
No files found.
trash
View file @
53e40a19
...
...
@@ -98,7 +98,7 @@ done
# not sure if that is appropriate either.
# sanitize input filenames
ARG
=
${
@// /_
}
ARG
=
${
@// /_
_+trash+__
}
set
-e
RUBBISH
=(
${
ARG
}
)
...
...
@@ -110,7 +110,7 @@ fi
# pitch it
if
[
"X
$ARG
"
!=
"X"
]
;
then
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
"Path="
$(
realpath
"
${
waste
}
"
)
>>
$BASKET
/info/
${
waste
}
.trashinfo
echo
"DeletionDate=
$(
date
+%Y-%m-%dT%T
)
"
>>
$BASKET
/info/
${
waste
}
.trashinfo
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment