Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nick Bearson
eodn2realearth
Commits
ee8d81b8
Commit
ee8d81b8
authored
Apr 04, 2016
by
Nick Bearson
Browse files
removing the error check & prioritizing the quarantine directory
parent
856118f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/purge.sh
View file @
ee8d81b8
#!/usr/bin/env bash
set
-u
set
-e
DIR
=
"
${
BASH_SOURCE
%/*
}
"
if
[[
!
-d
"
$DIR
"
]]
;
then
DIR
=
"
$PWD
"
;
fi
...
...
@@ -17,6 +16,6 @@ purge() {
find
$1
-mtime
+
${
DAYS_TO_KEEP
}
-type
d
-exec
echo
"PURGING: {}"
\;
-exec
rm
-r
{}
\;
}
purge
$
INCOM
IN
G
purge
$
QUARANT
IN
E
purge
$PROCESSING
purge
$
QUARANTINE
purge
$
INCOMING
Write
Preview
Supports
Markdown
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