diff --git a/platform/galileo/bsp/libc/build_newlib.sh b/platform/galileo/bsp/libc/build_newlib.sh index 89d3b870c..cef167e14 100755 --- a/platform/galileo/bsp/libc/build_newlib.sh +++ b/platform/galileo/bsp/libc/build_newlib.sh @@ -31,8 +31,8 @@ prepare() { fi # Clean up the previous install dir, if any. - if [[ -d ./${VERSION} ]]; then - rm -rf ./${VERSION} + if [[ -d ./${TARGET} ]]; then + rm -rf ./${TARGET} fi tar xf ${TARBALL}