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:
parent
0b4f915735
commit
f452c126bc
@ -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 \
|
||||
|
@ -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 \
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user