mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
Add an option to clobber after every run
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
58b53de17a
commit
51003bff5a
3 changed files with 4 additions and 2 deletions
|
@ -302,6 +302,8 @@ processRelease() {
|
|||
done;
|
||||
fi;
|
||||
|
||||
pkill java && sleep 10; #XXX: ugly hack
|
||||
|
||||
#Copy to archive
|
||||
if [ "$DOS_AUTO_ARCHIVE_BUILDS" = true ]; then
|
||||
echo -e "\e[0;32mCopying files to archive\e[0m";
|
||||
|
@ -325,6 +327,7 @@ processRelease() {
|
|||
echo -e "\e[0;32mRemoving to reclaim space\e[0m";
|
||||
#TODO: add a sanity check
|
||||
rm -rf "$OUT_DIR";
|
||||
if [ "$DOS_REMOVE_AFTER_FULL" = true ]; then rm -rf "$DOS_BUILD_BASE/out"; fi; #clobber entire workspace
|
||||
fi;
|
||||
fi;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue