remove build folder when deciding to skip build, take 2

This commit is contained in:
Lephenixnoir 2021-03-23 15:34:37 +01:00
parent d1e489e462
commit 6a39629fdf
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-as >/dev/null 2>&1; then
echo "$TAG Found sh-elf-as in PATH and ACCEPT_ANY is set, skipping build"
if [[ -e build ]]; then
rm -rf build
fi
exit 0
fi
fi