OMG-IT-GOES-WRONG

This commit is contained in:
shenmo 2023-03-13 11:32:10 +08:00
parent aa3b102fdd
commit 335996b7d0
2 changed files with 15 additions and 8 deletions

@ -27,14 +27,23 @@ fi
DEBPATH=`realpath $1`
echo ------------------------------------------------------------
try_run_output=$(/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh test-install-app $DEBPATH)
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 -e "${try_run_output}"
exit "$try_run_ret"
fi
dpkg -i "$DEBPATH" || aptss install -yf
install_ret="$?"
if [ "$install_ret" -ne 0 ]
then
echo "OMG-IT-GOES-WRONG"
exit "$install_ret"
fi

@ -98,9 +98,6 @@ try_run_ret="$?"
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
@ -114,6 +111,7 @@ rm "$DEBPATH"
echo "${TRANSHELL_CONTENT_DEB_IS_DELETED}"
else
echo "${TRANSHELL_CONTENT_WILL_NOT_DELETE_DEB}"
echo "OMG-IT-GOES-WRONG"
fi
else