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
3cb8df10
Commit
3cb8df10
authored
May 31, 2011
by
Klaatu von Schlacker
Browse files
Mark Katerberg made .trash 700 perm and reduced non bash calls with native -d
parent
c7e203d2
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 @
3cb8df10
...
...
@@ -2,8 +2,8 @@
ARG
=
"
$@
"
CHECK
=
$(
ls
-a
~ |
grep
-i
.trash
)
if
[
"X
$CHECK
"
==
"X
"
]
then
mkdir
~/.trash
if
[
!
-d
"~/.trash
"
]
then
mkdir
-m
700
~/.trash
fi
if
[
"X
$ARG
"
==
"X.trash"
]
...
...
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