diff --git a/oedp/build/build.sh b/oedp/build/build.sh index b59d30a5a5f25564b54236f56c953c2e9c8570c1..0f321afdada01ec70c306d9ea356a9603e8ba3f1 100644 --- a/oedp/build/build.sh +++ b/oedp/build/build.sh @@ -16,7 +16,7 @@ set -ex source $(dirname $0)/constants.sh if [ ! -z $1 ]; then [ ! -d "$(dirname $1)" ] && mkdir "$(dirname $1)" - exec >> "$1" 2>&1 + exec >>"$1" 2>&1 fi echo -e "\e[1;32m [INFO] Start to build RPM \e[0m" @@ -43,4 +43,4 @@ echo -e "\e[1;32m [INFO] RPM is stored in ${STORAGE_DIR}/${sub_dir}/${rpm_name} echo -e "\e[1;32m [INFO] Start to clean up environment \e[0m" [ -d "${PACKING_DIR}" ] && rm -rf "${PACKING_DIR}" -echo -e "\e[1;32m [INFO] Clean up environment successfully \e[0m" \ No newline at end of file +echo -e "\e[1;32m [INFO] Clean up environment successfully \e[0m" diff --git a/oedp/build/constants.sh b/oedp/build/constants.sh index 93b59f0e2617b6bfc96c7a2d6fe973e74b116198..7a92aaff055e3e308b4c17ed117ab9f91db688d1 100644 --- a/oedp/build/constants.sh +++ b/oedp/build/constants.sh @@ -27,4 +27,4 @@ BUILD_SCRIPT_DIR="${PROJECT_DIR}"/build TEMP_DIR="${PROJECT_DIR}"/temp # 打包目录 PACKING_DIR_NAME=oedp-1.1.4 -PACKING_DIR="${TEMP_DIR}/${PACKING_DIR_NAME}" \ No newline at end of file +PACKING_DIR="${TEMP_DIR}/${PACKING_DIR_NAME}" diff --git a/oedp/build/pack.sh b/oedp/build/pack.sh index 3022f3372b6ca5e02263492c7219d05e02718e17..3610400981ffe5d8a10c0fcddb56e71addec3822 100644 --- a/oedp/build/pack.sh +++ b/oedp/build/pack.sh @@ -32,4 +32,4 @@ echo -e "\e[1;32m [INFO] Start to pack source code \e[0m" cd "${TEMP_DIR}" [ -f "${PACKING_DIR_NAME}.tar.gz" ] && rm -f "${PACKING_DIR_NAME}.tar.gz" tar czf "${PACKING_DIR_NAME}.tar.gz" "${PACKING_DIR_NAME}" -echo -e "\e[1;32m [INFO] Source code packed successfully \e[0m" \ No newline at end of file +echo -e "\e[1;32m [INFO] Source code packed successfully \e[0m"