aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelley Spoon <kelley.spoon@linaro.org>2018-10-22 02:09:33 -0500
committerKelley Spoon <kelley.spoon@linaro.org>2018-10-23 14:43:23 +0000
commit2caf613ed6f315146ccbd1c43608f986bcef5bee (patch)
treec41fb1c43aed0965b538c77b95a9dd8ce4073c3b
parent9dadb1ffb5ee0359fd0e2d0a55232d7d1ff9fc6d (diff)
git_cleaner: set umask to correct perms
By default the git user shell sets the umask to 002, but our check scripts are expecting 022. This prevents spurious warnings from the cron jobs about resetting file permissions on things the cleaning script has touched. Change-Id: I3086c0a69cf6154d7d35b0754988c3767bed543b
-rwxr-xr-xgit_cleaner.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git_cleaner.sh b/git_cleaner.sh
index 9c521be..31030a2 100755
--- a/git_cleaner.sh
+++ b/git_cleaner.sh
@@ -2,6 +2,8 @@
BASE=/srv/repositories
+umask 022
+
# silence pushd/popd
pushd () {
command pushd "$@" > /dev/null