Commit ee8d81b8 authored by Nick Bearson's avatar Nick Bearson
Browse files

removing the error check & prioritizing the quarantine directory

parent 856118f8
#!/usr/bin/env bash #!/usr/bin/env bash
set -u set -u
set -e
DIR="${BASH_SOURCE%/*}" DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
...@@ -17,6 +16,6 @@ purge() { ...@@ -17,6 +16,6 @@ purge() {
find $1 -mtime +${DAYS_TO_KEEP} -type d -exec echo "PURGING: {}" \; -exec rm -r {} \; find $1 -mtime +${DAYS_TO_KEEP} -type d -exec echo "PURGING: {}" \; -exec rm -r {} \;
} }
purge $INCOMING purge $QUARANTINE
purge $PROCESSING purge $PROCESSING
purge $QUARANTINE purge $INCOMING
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