Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4 from Lacrimosa99/Lacrimosa99-patch-1
Browse files Browse the repository at this point in the history
Update ts3_updater.sh
  • Loading branch information
Lacrimosa99 authored Aug 24, 2022
2 parents dd13a94 + 580f568 commit 0a035d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts3_updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ if [ "$TS_MASTER_PATH_TMP" == "" ]; then
fi

yellowMessage "Checking for the latest Updater Script"
LATEST_SCRIPT_VERSION=$(wget -q --timeout=60 -O - https://api.github.com/repos/Lacrimosa99/Easy-WI-Teamspeak-Updater/releases/latest | grep -Po '(?<="tag_name": ")([0-9]\.[0-9])')
LATEST_SCRIPT_VERSION=$(curl -q https://github.com/easy-wi/server/blob/master/ts3_updater.sh | egrep "CURRENT_SCRIPT_VERSION" | grep -Po '([0-9]\.[0-9])')

if [ "$LATEST_SCRIPT_VERSION" != "" ]; then
if [ $(printf "${LATEST_SCRIPT_VERSION}\n${CURRENT_SCRIPT_VERSION}" | sort -V | tail -n 1) != "$CURRENT_SCRIPT_VERSION" ]; then
Expand Down Expand Up @@ -304,4 +304,4 @@ if [ "$TS_USER" != "" ]; then
else
redMessage 'Variable "TS_USER" are empty!'
FINISHED
fi
fi

0 comments on commit 0a035d9

Please sign in to comment.