Some actual error handling 1/n

Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
Tad 2023-03-08 00:02:28 -05:00
parent 097019193e
commit 6ba784ac33
No known key found for this signature in database
GPG key ID: B286E9F57A07424B
15 changed files with 113 additions and 85 deletions

View file

@ -151,9 +151,13 @@ enableDexPreOpt() {
export -f enableDexPreOpt;
enableLowRam() {
cd "$DOS_BUILD_BASE$1";
if [ -f lineage_$2.mk ]; then echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage_$2.mk; fi;
echo "Enabled lowram for $1";
cd "$DOS_BUILD_BASE";
if [ -d "$DOS_BUILD_BASE$1" ]; then
cd "$DOS_BUILD_BASE$1";
if [ -f lineage_$2.mk ]; then echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage_$2.mk; fi;
echo "Enabled lowram for $1";
cd "$DOS_BUILD_BASE";
else
echo "Not enabling lowram for $1, not available";
fi;
}
export -f enableLowRam;