remove build folder when deciding to skip build, take 2

This commit is contained in:
Lephenixnoir 2021-03-23 15:33:07 +01:00
parent 2d8919397f
commit 85f87acb15
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ fi
if [[ ! -z "$ACCEPT_ANY" ]]; then
if command -v sh-elf-gcc >/dev/null 2>&1; then
echo "$TAG sh-elf-gcc in PATH and ACCEPT_ANY is set, skipping build"
if [[ -e build ]]; then
rm -rf build
fi
exit 0
fi
fi