Update CI build scripts

Put `${ROOT_DIR}` in quotes in order to avoid the error: "cd : too many arguments".
This happens if `${ROOT_DIR}` contains one or more spaces (for example when
tensorflow is downloaded into a directory whose name contains one or more spaces)
and so enclosing it between quotes solves the issue.
The same fix has been applied to some others bash variables in the CI build scripts.
This commit is contained in:
Biagio Montaruli 2020-04-19 17:13:18 +02:00
parent 0b4f915735
commit f452c126bc
No known key found for this signature in database
GPG Key ID: C8C087FB8CB30E18
11 changed files with 13 additions and 13 deletions

View File

@ -26,7 +26,7 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR=${SCRIPT_DIR}/../../../../..
cd ${ROOT_DIR}
cd "${ROOT_DIR}"
pwd
make -f tensorflow/lite/micro/tools/make/Makefile \

View File

@ -21,7 +21,7 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR=${SCRIPT_DIR}/../../../../..
cd ${ROOT_DIR}
cd "${ROOT_DIR}"
pwd
make -f tensorflow/lite/micro/tools/make/Makefile \

View File

@ -21,7 +21,7 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR=${SCRIPT_DIR}/../../../../..
cd ${ROOT_DIR}
cd "${ROOT_DIR}"
source tensorflow/lite/micro/tools/ci_build/helper_functions.sh

View File

@ -21,7 +21,7 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR=${SCRIPT_DIR}/../../../../..
cd ${ROOT_DIR}
cd "${ROOT_DIR}"
source tensorflow/lite/micro/tools/ci_build/helper_functions.sh

View File

@ -30,10 +30,10 @@ LIBRARY_ZIP=${1}
rm -rf ${TEMP_BUILD_DIR}
mkdir -p ${ARDUINO_HOME_DIR}/libraries
mkdir -p "${ARDUINO_HOME_DIR}/libraries"
mkdir -p ${TEMP_BUILD_DIR}
unzip -q ${LIBRARY_ZIP} -d ${ARDUINO_LIBRARIES_DIR}
unzip -q ${LIBRARY_ZIP} -d "${ARDUINO_LIBRARIES_DIR}"
# Installs all dependencies for Arduino
InstallLibraryDependencies () {
@ -52,7 +52,7 @@ InstallLibraryDependencies () {
# the defines in ArduCAM/memorysaver.h are correct.
wget -O /tmp/arducam-master.zip https://github.com/ArduCAM/Arduino/archive/e216049ba304048ec9bb29adfc2cc24c16f589b1/master.zip
unzip /tmp/arducam-master.zip -d /tmp
cp -r /tmp/Arduino-e216049ba304048ec9bb29adfc2cc24c16f589b1/ArduCAM ${ARDUINO_LIBRARIES_DIR}
cp -r /tmp/Arduino-e216049ba304048ec9bb29adfc2cc24c16f589b1/ArduCAM "${ARDUINO_LIBRARIES_DIR}"
}
InstallLibraryDependencies

View File

@ -20,7 +20,7 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR=${SCRIPT_DIR}/../../../../..
cd ${ROOT_DIR}
cd "${ROOT_DIR}"
pwd
source tensorflow/lite/micro/tools/ci_build/helper_functions.sh

View File

@ -29,7 +29,7 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR=${SCRIPT_DIR}/../../../../..
cd ${ROOT_DIR}
cd "${ROOT_DIR}"
pwd
source tensorflow/lite/micro/tools/ci_build/helper_functions.sh

View File

@ -21,7 +21,7 @@
set -e
PATH=`pwd`/tensorflow/lite/micro/tools/make/downloads/gcc_embedded/bin:${PATH}
cd ${1}
cd "${1}"
mbed config root .
mbed deploy

View File

@ -20,7 +20,7 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR=${SCRIPT_DIR}/../../../../..
cd ${ROOT_DIR}
cd "${ROOT_DIR}"
source tensorflow/lite/micro/tools/ci_build/helper_functions.sh

View File

@ -22,7 +22,7 @@ TARGET=stm32f4
TAGS=cmsis-nn
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR=${SCRIPT_DIR}/../../../../..
cd ${ROOT_DIR}
cd "${ROOT_DIR}"
pwd
source tensorflow/lite/micro/tools/ci_build/helper_functions.sh

View File

@ -20,7 +20,7 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR=${SCRIPT_DIR}/../../../../..
cd ${ROOT_DIR}
cd "${ROOT_DIR}"
source tensorflow/lite/micro/tools/ci_build/helper_functions.sh