aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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