aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/packages/template_bin.sh
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-02-15 14:43:02 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-02-16 09:39:53 +0000
commitfa465f6f6216c5a3202964edf78e085cb19d5195 (patch)
tree3d89681133e7d6c57df8e26f77ffb36375782593 /scripts/packages/template_bin.sh
parenta4ba24e286b7e9a7a09e333d8eb64a8cf7e81895 (diff)
installer: set permission of bazelrc to 0644
So that bazel can read it. Fixes #894. -- MOS_MIGRATED_REVID=114689351
Diffstat (limited to 'scripts/packages/template_bin.sh')
-rwxr-xr-xscripts/packages/template_bin.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/packages/template_bin.sh b/scripts/packages/template_bin.sh
index 3a2901a56e..e852fd5bfa 100755
--- a/scripts/packages/template_bin.sh
+++ b/scripts/packages/template_bin.sh
@@ -166,6 +166,9 @@ fi
# Not necessary, but this way it matches the Debian package.
touch "${bazelrc}"
+if [ "${UID}" == 0 ]; then
+ chmod 0644 "${bazelrc}"
+fi
echo .
cat <<EOF