Change Umask for update to ensure its 0022

This change sets umask to 0022 and restores it afterwards to the standard umask.
This works around issue
master
Florian Braun 2018-07-13 13:06:56 +02:00 committed by GitHub
parent 3c2249e87c
commit 2824c44781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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