Merge branch 'dev' into Reason

This commit is contained in:
uniartisan 2023-03-13 00:39:22 +08:00
commit d2544795f5

View File

@ -94,10 +94,17 @@ echo --------------------------------------------------------------------------
try_run_output=$(/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh test-install-app "$DEBPATH")
try_run_ret="$?"
if [ "$try_run_ret" -ne 0 ];then
echo "$try_run_output"
exit $try_run_ret
fi
if [ "$try_run_ret" -ne 0 ]
then
echo "OMG-IT-GOES-WRONG"
echo "Package manager quit with exit code.Here is the log"
echo "包管理器以错误代码退出.日志如下"
echo
echo -e "${try_run_output}"
exit "$try_run_ret"
fi
dpkg -i "$DEBPATH" || aptss install -yf