From 2cb66fe073b5d45fe950cd26ecc4952488271752 Mon Sep 17 00:00:00 2001 From: wangqing Date: Wed, 24 Sep 2025 09:54:46 +0800 Subject: [PATCH] fmt: shfmt -i 4 -w *.sh Signed-off-by: wangqing --- oedp/build/build.sh | 4 ++-- oedp/build/constants.sh | 2 +- oedp/build/pack.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/oedp/build/build.sh b/oedp/build/build.sh index b59d30a..0f321af 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 93b59f0..7a92aaf 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 3022f33..3610400 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" -- Gitee