fix error returns

This commit is contained in:
tb14
2026-06-20 15:50:16 -05:00
parent fe9113319a
commit 72220bc128
+7 -7
View File
@@ -1817,23 +1817,23 @@ function commstat-v4() {
if [[ ! -f $USERDIR/commstat-v4/commstat.py ]]; then
sudo apt install python3-pip ||
{ ERRCODE="Failed to install python3-pip dependency"; errors; }
sudo apt install -y python3-pip ||
{ ERRCODE="Failed to install python3-pip dependency"; errors; return; }
mkdir $USERDIR/commstat-v4 && cd $USERDIR/commstat-v4 ||
{ ERRCODE="Failed to create commstat-v4 directory"; errors; }
{ ERRCODE="Failed to create commstat-v4 directory"; errors; return; }
wget -N https://commstat-improved.com/downloads/${CSIMPVER}.zip ||
{ ERRCODE="Failed to download CommStat Improved version 4"; errors; }
{ ERRCODE="Failed to download CommStat Improved version 4"; errors; return; }
unzip $CSIMPVER.zip ||
{ ERRCODE="Failed to unzip commstat-v4"; errors; }
{ ERRCODE="Failed to unzip commstat-v4"; errors; return; }
chmod +x linuxinstall.sh linuxlauncher.sh ||
{ ERRCODE="Failed to make linuxinstall.sh and linuxlauncher.sh executable"; errors; }
{ ERRCODE="Failed to make linuxinstall.sh and linuxlauncher.sh executable"; errors; return; }
$USERDIR/commstat-v4/linuxinstall.sh ||
{ ERRCODE="Failed to run CommStat-v4 installer"; errors; }
{ ERRCODE="Failed to run CommStat-v4 installer"; errors; return; }
else