perf: 构建工具调整

This commit is contained in:
TsMask
2025-03-18 17:07:36 +08:00
parent 3275755e05
commit b0071400b1
2 changed files with 9 additions and 8 deletions

View File

@@ -25,11 +25,12 @@ if [ ! -f $RootDir/omc.conf ]; then
else else
bash $RootDir/script/setup.sh -i bash $RootDir/script/setup.sh -i
fi fi
# exit while failed to run err
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Initialization failure." echo "Initialization failure."
rm -rf $RootDir
exit 1 exit 1
fi fi
rm -rf $RootDir/vendor rm -rf $RootDir/vendor
systemctl daemon-reload systemctl daemon-reload

View File

@@ -60,8 +60,8 @@ func ImportSQL() {
processSQLFile(db, sqlPath) processSQLFile(db, sqlPath)
} }
log.Println("Import SQL End") log.Println("process success")
os.Exit(1) os.Exit(0)
} }
// 处理单个SQL文件的通用函数 // 处理单个SQL文件的通用函数