OMG-IT-GOES-WRONG

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

View File

@@ -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