mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-11-13 20:42:21 +08:00
OMG-IT-GOES-WRONG
This commit is contained in:
parent
aa3b102fdd
commit
335996b7d0
19
tool/ssaudit
19
tool/ssaudit
@ -27,14 +27,23 @@ fi
|
|||||||
|
|
||||||
DEBPATH=`realpath $1`
|
DEBPATH=`realpath $1`
|
||||||
echo ------------------------------------------------------------
|
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="$?"
|
try_run_ret="$?"
|
||||||
if [ "$try_run_ret" -ne 0 ];then
|
|
||||||
echo "$try_run_output"
|
if [ "$try_run_ret" -ne 0 ]
|
||||||
exit $try_run_ret
|
then
|
||||||
fi
|
echo "OMG-IT-GOES-WRONG"
|
||||||
|
echo -e "${try_run_output}"
|
||||||
|
exit "$try_run_ret"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
dpkg -i "$DEBPATH" || aptss install -yf
|
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 ]
|
if [ "$try_run_ret" -ne 0 ]
|
||||||
then
|
then
|
||||||
echo "OMG-IT-GOES-WRONG"
|
echo "OMG-IT-GOES-WRONG"
|
||||||
echo "Package manager quit with exit code.Here is the log"
|
|
||||||
echo "包管理器以错误代码退出.日志如下"
|
|
||||||
echo
|
|
||||||
echo -e "${try_run_output}"
|
echo -e "${try_run_output}"
|
||||||
exit "$try_run_ret"
|
exit "$try_run_ret"
|
||||||
fi
|
fi
|
||||||
@ -114,6 +111,7 @@ rm "$DEBPATH"
|
|||||||
echo "${TRANSHELL_CONTENT_DEB_IS_DELETED}"
|
echo "${TRANSHELL_CONTENT_DEB_IS_DELETED}"
|
||||||
else
|
else
|
||||||
echo "${TRANSHELL_CONTENT_WILL_NOT_DELETE_DEB}"
|
echo "${TRANSHELL_CONTENT_WILL_NOT_DELETE_DEB}"
|
||||||
|
echo "OMG-IT-GOES-WRONG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user