From 641d7c6cd45e2f0eeb9a26abd1bdd6be8f24bee3 Mon Sep 17 00:00:00 2001 From: away <1819625428@qq.com> Date: Mon, 31 May 2021 10:00:28 +0800 Subject: [PATCH] Automatically created when there is no bin, logs folder --- script/build_all_service.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/script/build_all_service.sh b/script/build_all_service.sh index 0bceb115e..3245a72f9 100644 --- a/script/build_all_service.sh +++ b/script/build_all_service.sh @@ -4,6 +4,16 @@ source ./style_info.cfg source ./path_info.cfg source ./function.sh +bin_dir="../bin" +logs_dir="../logs" +#Automatically created when there is no bin, logs folder +if [ ! -d $bin_dir ]; then + mkdir -p $bin_dir +fi +if [ ! -d $logs_dir ]; then + mkdir -p $logs_dir +fi + #begin path begin_path=$PWD