调整:因为apt-fast返回值都是1,只好暂时全部提示

This commit is contained in:
shenmo 2023-08-28 23:45:23 +08:00
parent 5d4ac6f523
commit 766b7cd178

View File

@ -73,12 +73,10 @@ if [ "$1" = "install" ] || [ "$1" = "upgrade" ] || [ "$1" = "full-upgrade" ] ;
###执行
${SS_APT_FAST} "$@" --allow-downgrades -c /opt/durapps/spark-store/bin/apt-fast-conf/aptss-apt.conf
EXIT_CODE=$?
if [ "$EXIT_CODE" != "0" ];then
echo -e "\e[1;33m$TRANSHELL_CONTENT_PLEASE_USE_APTSS_INSTEAD_OF_APT\e[0m"
exit
fi
unset EXIT_CODE
elif [ "$1" = "download" ];then