mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-11-28 03:10:44 -05:00
Some actual error handling 1/n
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
097019193e
commit
6ba784ac33
15 changed files with 113 additions and 85 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue