From 6693c67be6d228eeaa80475eba0c7706da22ff2f Mon Sep 17 00:00:00 2001 From: Thomas Battermann Date: Fri, 29 Apr 2011 19:37:51 +0200 Subject: [PATCH] modified: paste42.sh --- paste42.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paste42.sh b/paste42.sh index a844aef..241f9aa 100755 --- a/paste42.sh +++ b/paste42.sh @@ -33,7 +33,7 @@ filetypes() { } checkUpdate() { - SERV_VER=$(curl -s -S 'http://git.thomasba.de/cgit/paste42/plain/paste42.sh' | sed -e '/VERSION=.*/ !d;s/VERSION="\(.*\)"/\1/') + 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"