From 72220bc1286784f3fe5e9109e747a24aa117b368 Mon Sep 17 00:00:00 2001 From: tb14 Date: Sat, 20 Jun 2026 15:50:16 -0500 Subject: [PATCH] fix error returns --- AmRRON-Setup-Script.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/AmRRON-Setup-Script.sh b/AmRRON-Setup-Script.sh index 24112cd..e76724e 100755 --- a/AmRRON-Setup-Script.sh +++ b/AmRRON-Setup-Script.sh @@ -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