diff --git a/configure.sh b/configure.sh index 2469dd8..c6ff172 100755 --- a/configure.sh +++ b/configure.sh @@ -15,6 +15,9 @@ if [[ -f "$existing_gcc" ]]; then existing_version=$(sh-elf-gcc --version | head -n 1 | grep -Eo '[0-9.]+$') if [[ $existing_version == $VERSION ]]; then echo "$TAG Version $VERSION already installed, skipping rebuild" + if [[ -e build ]]; then + rm -rf build + fi exit 0 fi fi