summaryrefslogtreecommitdiff
path: root/cron-jobs
diff options
context:
space:
mode:
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/sourceballs3
1 files changed, 3 insertions, 0 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index 72baa32..0d8be62 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -11,6 +11,7 @@ LOCKFILE="/tmp/.sourceball.lock"
cleanup () {
rm -f "$LOCKFILE"
+ restore_umask
exit 0
}
@@ -27,6 +28,8 @@ fi
trap cleanup 0
trap ctrl_c 2
+set_umask
+
/bin/touch "$LOCKFILE"
dirname="$(/bin/readlink -f $(/usr/bin/dirname $0))"