mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-07-25 07:35:21 -04:00
More handling improvements
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
0b294c1601
commit
ef2fdb1d3e
9 changed files with 60 additions and 29 deletions
|
@ -32,8 +32,12 @@ export -f scanWorkspaceForMalware;
|
|||
|
||||
buildDevice() {
|
||||
cd "$DOS_BUILD_BASE";
|
||||
export OTA_KEY_OVERRIDE_DIR="$DOS_SIGNING_KEYS/$1";
|
||||
breakfast "lineage_$1-user" && mka target-files-package otatools && processRelease $1 true $2;
|
||||
if [[ -d "$DOS_SIGNING_KEYS/$1" ]]; then
|
||||
export OTA_KEY_OVERRIDE_DIR="$DOS_SIGNING_KEYS/$1";
|
||||
breakfast "lineage_$1-user" && mka target-files-package otatools && processRelease $1 true $2;
|
||||
else
|
||||
echo -e "\e[0;31mNo signing keys available for $1\e[0m";
|
||||
fi;
|
||||
}
|
||||
export -f buildDevice;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue