浏览代码

[Update] Change umask for update to ensure its 0022

André Peters 6 年之前
父节点
当前提交
7325d80f19
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      update.sh

+ 2 - 0
update.sh

@@ -3,6 +3,8 @@
 #exit on error and pipefail
 #exit on error and pipefail
 set -o pipefail
 set -o pipefail
 
 
+umask 0022
+
 for bin in curl docker-compose docker git awk sha1sum; do
 for bin in curl docker-compose docker git awk sha1sum; do
   if [[ -z $(which ${bin}) ]]; then echo "Cannot find ${bin}, exiting..."; exit 1; fi
   if [[ -z $(which ${bin}) ]]; then echo "Cannot find ${bin}, exiting..."; exit 1; fi
 done
 done