aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2016-01-27 20:55:38 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2016-01-27 20:55:38 -0800
commitbd1f40fb64208d44baa4e895f6dfccb6d997358d (patch)
treec38a2299ecea5624e5f7861d07a25bd2a118b19e /mastermirror-staging.sh
parentForce py2 version for now. (diff)
downloadmastermirror-scripts-bd1f40fb64208d44baa4e895f6dfccb6d997358d.tar.gz
mastermirror-scripts-bd1f40fb64208d44baa4e895f6dfccb6d997358d.tar.bz2
mastermirror-scripts-bd1f40fb64208d44baa4e895f6dfccb6d997358d.zip
mastermirror-staging: improve umask.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'mastermirror-staging.sh')
-rwxr-xr-xmastermirror-staging.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/mastermirror-staging.sh b/mastermirror-staging.sh
index d705d17..77b25ee 100755
--- a/mastermirror-staging.sh
+++ b/mastermirror-staging.sh
@@ -57,6 +57,9 @@ REPO_changelogs=${GITROOT}/data/gentoo-changelogs.git
HERDS_XML_URI=https://api.gentoo.org/packages/herds.xml
PROJECTS_XML_URI=https://api.gentoo.org/metastructure/projects.xml
+# Ensure all files are readable
+umask 0022
+
fetch_git() {
targetdir=$1
repo=$2