diff --git a/paste42.sh b/paste42.sh index ff3a94d..56678b9 100755 --- a/paste42.sh +++ b/paste42.sh @@ -28,7 +28,7 @@ filetypes() { } checkUpdate() { - SERV_VER=$(curl -s -S http://paste42.de/version.txt | sed -e 's/[^0-9\-]//g') + SERV_VER=$(curl -s -S 'http://git.thomasba.de/cgit/paste42/plain/paste42.sh' | sed -e '/VERSION=.*/ !d;s/VERSION="\(.*\)"/\1/') if [ "$SERV_VER" != "$VERSION" ] ; then echo "Update available!" echo "Your version: $VERSION"