perf: 构建工具调整

This commit is contained in:
TsMask
2025-03-18 16:41:56 +08:00
parent 17112eac81
commit 3275755e05
2 changed files with 7 additions and 5 deletions

View File

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