diff options
author | Kelley Spoon <kelley.spoon@linaro.org> | 2018-10-22 02:09:33 -0500 |
---|---|---|
committer | Kelley Spoon <kelley.spoon@linaro.org> | 2018-10-23 14:43:23 +0000 |
commit | 2caf613ed6f315146ccbd1c43608f986bcef5bee (patch) | |
tree | c41fb1c43aed0965b538c77b95a9dd8ce4073c3b /git_cleaner.sh | |
parent | 9dadb1ffb5ee0359fd0e2d0a55232d7d1ff9fc6d (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
Diffstat (limited to 'git_cleaner.sh')
-rwxr-xr-x | git_cleaner.sh | 2 |
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 |