From c75e9466f6f1eacf45b570b3f9c4974f71af2740 Mon Sep 17 00:00:00 2001 From: Michael LeMay Date: Wed, 11 Nov 2015 09:19:17 -0800 Subject: [PATCH] galileo: Fix bug in newlib build script This patch fixes a bug in the newlib build script that causes it to not delete an old source directory as intended prior to rebuilding the library. --- platform/galileo/bsp/libc/build_newlib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}