Ensure correct umask for scripts
Fix for FS#58473 Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
This commit is contained in:
parent
5f57352398
commit
b200ce82f7
@ -367,6 +367,8 @@ if [[ ${EUID} -ne 0 ]]; then
|
|||||||
_msg_error "This script must be run as root." 1
|
_msg_error "This script must be run as root." 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
umask 0022
|
||||||
|
|
||||||
while getopts 'p:r:C:L:P:A:D:w:o:s:c:g:vh' arg; do
|
while getopts 'p:r:C:L:P:A:D:w:o:s:c:g:vh' arg; do
|
||||||
case "${arg}" in
|
case "${arg}" in
|
||||||
p) pkg_list="${pkg_list} ${OPTARG}" ;;
|
p) pkg_list="${pkg_list} ${OPTARG}" ;;
|
||||||
|
@ -12,6 +12,8 @@ out_dir=out
|
|||||||
|
|
||||||
script_path=$(readlink -f ${0%/*})
|
script_path=$(readlink -f ${0%/*})
|
||||||
|
|
||||||
|
umask 0022
|
||||||
|
|
||||||
# Helper function to run make_*() only one time per architecture.
|
# Helper function to run make_*() only one time per architecture.
|
||||||
run_once() {
|
run_once() {
|
||||||
if [[ ! -e ${work_dir}/build.${1}_${arch} ]]; then
|
if [[ ! -e ${work_dir}/build.${1}_${arch} ]]; then
|
||||||
|
@ -14,6 +14,8 @@ arch=$(uname -m)
|
|||||||
verbose=""
|
verbose=""
|
||||||
script_path=$(readlink -f ${0%/*})
|
script_path=$(readlink -f ${0%/*})
|
||||||
|
|
||||||
|
umask 0022
|
||||||
|
|
||||||
_usage ()
|
_usage ()
|
||||||
{
|
{
|
||||||
echo "usage ${0} [options]"
|
echo "usage ${0} [options]"
|
||||||
|
Loading…
Reference in New Issue
Block a user