Change-Id: I044122a659da4947994e058c8fe8367ce791001b
export_all
-for target_dir in $(echo "${1}/*/"); do
- logfile="${LOG_PATH}/$(basename ${target_dir})_build.log"
+for target_dir in "${1}"/*/; do
+ logfile="${LOG_PATH}"/$(basename "${target_dir}")_build.log
if [[ -z ${LOG_PATH} ]]; then
- "${COMMANDS_DIR}"/build.sh ${BUILD_ARGS[@]} "${target_dir}"
+ "${COMMANDS_DIR}"/build.sh "${BUILD_ARGS[@]}" "${target_dir}"
else
set -o pipefail
- "${COMMANDS_DIR}"/build.sh ${BUILD_ARGS[@]} "${target_dir}" | tee "${logfile}"
+ "${COMMANDS_DIR}"/build.sh "${BUILD_ARGS[@]}" "${target_dir}" | tee "${logfile}"
fi
echo
done