mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
umask 0022 all the things
umask 0077 breaks things in subtle ways
This commit is contained in:
parent
d7287a6b94
commit
c2ce9572fa
@ -31,6 +31,7 @@ enter() {
|
|||||||
echo "================================================================================================"
|
echo "================================================================================================"
|
||||||
local dir="$1";
|
local dir="$1";
|
||||||
local dirReal="$DOS_BUILD_BASE$dir";
|
local dirReal="$DOS_BUILD_BASE$dir";
|
||||||
|
umask 0022;
|
||||||
if [ -d "$dirReal" ]; then
|
if [ -d "$dirReal" ]; then
|
||||||
cd "$dirReal";
|
cd "$dirReal";
|
||||||
echo -e "\e[0;32m[ENTERING] $dir\e[0m";
|
echo -e "\e[0;32m[ENTERING] $dir\e[0m";
|
||||||
@ -161,6 +162,8 @@ processRelease() {
|
|||||||
local RELEASETOOLS_PREFIX="";
|
local RELEASETOOLS_PREFIX="";
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
umask 0022;
|
||||||
|
|
||||||
echo -e "\e[0;32mProcessing release for $DEVICE\e[0m";
|
echo -e "\e[0;32mProcessing release for $DEVICE\e[0m";
|
||||||
|
|
||||||
#Arguments
|
#Arguments
|
||||||
|
@ -23,6 +23,7 @@ patchAllKernels() {
|
|||||||
export -f patchAllKernels;
|
export -f patchAllKernels;
|
||||||
|
|
||||||
resetWorkspace() {
|
resetWorkspace() {
|
||||||
|
umask 0022;
|
||||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j20 --force-sync;
|
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j20 --force-sync;
|
||||||
}
|
}
|
||||||
export -f resetWorkspace;
|
export -f resetWorkspace;
|
||||||
@ -49,6 +50,7 @@ buildDeviceDebug() {
|
|||||||
export -f buildDeviceDebug;
|
export -f buildDeviceDebug;
|
||||||
|
|
||||||
buildAll() {
|
buildAll() {
|
||||||
|
umask 0022;
|
||||||
cd "$DOS_BUILD_BASE";
|
cd "$DOS_BUILD_BASE";
|
||||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
||||||
if [ "$DOS_OPTIMIZE_IMAGES" = true ]; then optimizeImagesRecursive "$DOS_BUILD_BASE"; fi;
|
if [ "$DOS_OPTIMIZE_IMAGES" = true ]; then optimizeImagesRecursive "$DOS_BUILD_BASE"; fi;
|
||||||
@ -57,6 +59,7 @@ buildAll() {
|
|||||||
export -f buildAll;
|
export -f buildAll;
|
||||||
|
|
||||||
patchWorkspace() {
|
patchWorkspace() {
|
||||||
|
umask 0022;
|
||||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/cm"; fi;
|
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/cm"; fi;
|
||||||
sed -i "s/'git', 'show', '-q'/'git', 'show'/" build/tools/repopick.py; #fix for old git versions
|
sed -i "s/'git', 'show', '-q'/'git', 'show'/" build/tools/repopick.py; #fix for old git versions
|
||||||
source build/envsetup.sh;
|
source build/envsetup.sh;
|
||||||
|
@ -23,6 +23,7 @@ patchAllKernels() {
|
|||||||
export -f patchAllKernels;
|
export -f patchAllKernels;
|
||||||
|
|
||||||
resetWorkspace() {
|
resetWorkspace() {
|
||||||
|
umask 0022;
|
||||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j20 --force-sync;
|
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j20 --force-sync;
|
||||||
}
|
}
|
||||||
export -f resetWorkspace;
|
export -f resetWorkspace;
|
||||||
@ -56,6 +57,7 @@ buildDeviceDebug() {
|
|||||||
export -f buildDeviceDebug;
|
export -f buildDeviceDebug;
|
||||||
|
|
||||||
buildAll() {
|
buildAll() {
|
||||||
|
umask 0022;
|
||||||
cd "$DOS_BUILD_BASE";
|
cd "$DOS_BUILD_BASE";
|
||||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
||||||
if [ "$DOS_OPTIMIZE_IMAGES" = true ]; then optimizeImagesRecursive "$DOS_BUILD_BASE"; fi;
|
if [ "$DOS_OPTIMIZE_IMAGES" = true ]; then optimizeImagesRecursive "$DOS_BUILD_BASE"; fi;
|
||||||
@ -91,6 +93,7 @@ buildAll() {
|
|||||||
export -f buildAll;
|
export -f buildAll;
|
||||||
|
|
||||||
patchWorkspace() {
|
patchWorkspace() {
|
||||||
|
umask 0022;
|
||||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/cm"; fi;
|
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/cm"; fi;
|
||||||
source build/envsetup.sh;
|
source build/envsetup.sh;
|
||||||
repopick -ift n_asb_09-2018-qcom; #TODO: move in tree
|
repopick -ift n_asb_09-2018-qcom; #TODO: move in tree
|
||||||
|
@ -23,6 +23,7 @@ patchAllKernels() {
|
|||||||
export -f patchAllKernels;
|
export -f patchAllKernels;
|
||||||
|
|
||||||
resetWorkspace() {
|
resetWorkspace() {
|
||||||
|
umask 0022;
|
||||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j20 --force-sync;
|
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j20 --force-sync;
|
||||||
}
|
}
|
||||||
export -f resetWorkspace;
|
export -f resetWorkspace;
|
||||||
@ -49,6 +50,7 @@ buildDeviceDebug() {
|
|||||||
export -f buildDeviceDebug;
|
export -f buildDeviceDebug;
|
||||||
|
|
||||||
buildAll() {
|
buildAll() {
|
||||||
|
umask 0022;
|
||||||
cd "$DOS_BUILD_BASE";
|
cd "$DOS_BUILD_BASE";
|
||||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
||||||
if [ "$DOS_OPTIMIZE_IMAGES" = true ]; then optimizeImagesRecursive "$DOS_BUILD_BASE"; fi;
|
if [ "$DOS_OPTIMIZE_IMAGES" = true ]; then optimizeImagesRecursive "$DOS_BUILD_BASE"; fi;
|
||||||
@ -80,6 +82,7 @@ buildAll() {
|
|||||||
export -f buildAll;
|
export -f buildAll;
|
||||||
|
|
||||||
patchWorkspace() {
|
patchWorkspace() {
|
||||||
|
umask 0022;
|
||||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
||||||
|
|
||||||
#source build/envsetup.sh;
|
#source build/envsetup.sh;
|
||||||
|
@ -23,6 +23,7 @@ patchAllKernels() {
|
|||||||
export -f patchAllKernels;
|
export -f patchAllKernels;
|
||||||
|
|
||||||
resetWorkspace() {
|
resetWorkspace() {
|
||||||
|
umask 0022;
|
||||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j20 --force-sync;
|
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j20 --force-sync;
|
||||||
}
|
}
|
||||||
export -f resetWorkspace;
|
export -f resetWorkspace;
|
||||||
@ -49,6 +50,7 @@ buildDeviceDebug() {
|
|||||||
export -f buildDeviceDebug;
|
export -f buildDeviceDebug;
|
||||||
|
|
||||||
buildAll() {
|
buildAll() {
|
||||||
|
umask 0022;
|
||||||
cd "$DOS_BUILD_BASE";
|
cd "$DOS_BUILD_BASE";
|
||||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
||||||
if [ "$DOS_OPTIMIZE_IMAGES" = true ]; then optimizeImagesRecursive "$DOS_BUILD_BASE"; fi;
|
if [ "$DOS_OPTIMIZE_IMAGES" = true ]; then optimizeImagesRecursive "$DOS_BUILD_BASE"; fi;
|
||||||
@ -70,6 +72,7 @@ buildAll() {
|
|||||||
export -f buildAll;
|
export -f buildAll;
|
||||||
|
|
||||||
patchWorkspace() {
|
patchWorkspace() {
|
||||||
|
umask 0022;
|
||||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
||||||
|
|
||||||
#source build/envsetup.sh;
|
#source build/envsetup.sh;
|
||||||
|
@ -23,6 +23,7 @@ patchAllKernels() {
|
|||||||
export -f patchAllKernels;
|
export -f patchAllKernels;
|
||||||
|
|
||||||
resetWorkspace() {
|
resetWorkspace() {
|
||||||
|
umask 0022;
|
||||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j20 --force-sync;
|
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j20 --force-sync;
|
||||||
}
|
}
|
||||||
export -f resetWorkspace;
|
export -f resetWorkspace;
|
||||||
@ -49,6 +50,7 @@ buildDeviceDebug() {
|
|||||||
export -f buildDeviceDebug;
|
export -f buildDeviceDebug;
|
||||||
|
|
||||||
buildAll() {
|
buildAll() {
|
||||||
|
umask 0022;
|
||||||
cd "$DOS_BUILD_BASE";
|
cd "$DOS_BUILD_BASE";
|
||||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
||||||
if [ "$DOS_OPTIMIZE_IMAGES" = true ]; then optimizeImagesRecursive "$DOS_BUILD_BASE"; fi;
|
if [ "$DOS_OPTIMIZE_IMAGES" = true ]; then optimizeImagesRecursive "$DOS_BUILD_BASE"; fi;
|
||||||
@ -87,6 +89,7 @@ buildAll() {
|
|||||||
export -f buildAll;
|
export -f buildAll;
|
||||||
|
|
||||||
patchWorkspace() {
|
patchWorkspace() {
|
||||||
|
umask 0022;
|
||||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
||||||
|
|
||||||
#source build/envsetup.sh;
|
#source build/envsetup.sh;
|
||||||
|
@ -23,6 +23,7 @@ patchAllKernels() {
|
|||||||
export -f patchAllKernels;
|
export -f patchAllKernels;
|
||||||
|
|
||||||
resetWorkspace() {
|
resetWorkspace() {
|
||||||
|
umask 0022;
|
||||||
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j20 --force-sync;
|
repo forall -c 'git add -A && git reset --hard' && rm -rf out && repo sync -j20 --force-sync;
|
||||||
}
|
}
|
||||||
export -f resetWorkspace;
|
export -f resetWorkspace;
|
||||||
@ -49,6 +50,7 @@ buildDeviceDebug() {
|
|||||||
export -f buildDeviceDebug;
|
export -f buildDeviceDebug;
|
||||||
|
|
||||||
buildAll() {
|
buildAll() {
|
||||||
|
umask 0022;
|
||||||
cd "$DOS_BUILD_BASE";
|
cd "$DOS_BUILD_BASE";
|
||||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
||||||
if [ "$DOS_OPTIMIZE_IMAGES" = true ]; then optimizeImagesRecursive "$DOS_BUILD_BASE"; fi;
|
if [ "$DOS_OPTIMIZE_IMAGES" = true ]; then optimizeImagesRecursive "$DOS_BUILD_BASE"; fi;
|
||||||
@ -104,6 +106,7 @@ buildAll() {
|
|||||||
export -f buildAll;
|
export -f buildAll;
|
||||||
|
|
||||||
patchWorkspace() {
|
patchWorkspace() {
|
||||||
|
umask 0022;
|
||||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi;
|
||||||
|
|
||||||
#source build/envsetup.sh;
|
#source build/envsetup.sh;
|
||||||
|
Loading…
Reference in New Issue
Block a user