mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
fix error returns
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user