Commit e25e1058 authored by Rabeeh Khoury's avatar Rabeeh Khoury

fix script exit which checking tools

which $i exits with an error code that makes the script exit
ignore those exit codes only when checking for tools
Signed-off-by: default avatarRabeeh Khoury <rabeeh@solid-run.com>
parent 153fb79d
...@@ -66,6 +66,7 @@ fi ...@@ -66,6 +66,7 @@ fi
echo "Checking all required tools are installed" echo "Checking all required tools are installed"
set +e
for i in $TOOLS; do for i in $TOOLS; do
TOOL_PATH=`which $i` TOOL_PATH=`which $i`
if [ "x$TOOL_PATH" == "x" ]; then if [ "x$TOOL_PATH" == "x" ]; then
...@@ -73,6 +74,7 @@ for i in $TOOLS; do ...@@ -73,6 +74,7 @@ for i in $TOOLS; do
exit -1 exit -1
fi fi
done done
set -e
if [[ ! -d $ROOTDIR/build/toolchain ]]; then if [[ ! -d $ROOTDIR/build/toolchain ]]; then
mkdir -p $ROOTDIR/build/toolchain mkdir -p $ROOTDIR/build/toolchain
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment