Skip to content

Commit

Permalink
Removed the Upgrade spam.
Browse files Browse the repository at this point in the history
  • Loading branch information
kicker22004 committed Apr 21, 2018
1 parent 438d48a commit cc659d9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions ELSM
Expand Up @@ -19,8 +19,6 @@ if [ ! -f $DIR/$SELECTED_DIR/EcoServer.exe ]; then
do_newserver
else
do_update
##We will now ask about ECO upgrades.
do_ECO_upgrade_check
fi
}

Expand Down Expand Up @@ -837,19 +835,6 @@ RET=$?
done
}

do_ECO_upgrade_check() {
cd $INSTALL_LOC/Files
wget -q https://raw.githubusercontent.com/kicker22004/ECO_Linux_Server_Manager/master/Files/server_version.txt -O server_version.txt
UPGRADE_VERSIONS=$(cat server_version.txt | sort -r | grep -n $ECO_VERSION | cut -d ":" -f1)
UPGRADE_LIST=$(sed ''$UPGRADE_VERSIONS',$d' server_version.txt | sort -r | awk '{print $1 " |"}')

if [ ! $UPGRADE_VERSIONS = "1" ]; then
if (whiptail --fb --title "ECO Upgrade Notice!" --yesno "There were ECO upgrades found!, Would you like to update now?" 10 78) then
do_upgrade
fi
fi
}

do_thankyou() {
#Let's get the latest list and make sure it's always up to date!.
#This is a fast addition so will probably clean it up and make it cleaner later. But it's important to get it live. Thank you guys!
Expand Down

0 comments on commit cc659d9

Please sign in to comment.