diff --git a/src/usr/bin/sbopkg b/src/usr/bin/sbopkg index add96d5..5dc2a04 100755 --- a/src/usr/bin/sbopkg +++ b/src/usr/bin/sbopkg @@ -46,7 +46,8 @@ INSTALLPKGS="" BUILDOPTIONS="" SBOPKG_CONF="${SBOPKG_CONF:-/etc/sbopkg/sbopkg.conf}" CWD="$(pwd)" -SBOVER=svn_r$(grep -m1 '$Id$0 | cut -d " " -f4) +SBOVER=svn_r$(cat ${0} | grep '$Id: ' | head -1 | \ +sed -e 's/^.*Id: sbopkg \([0-9.]*\) .*$/\1/') config_check () { # Check if config file is there and if so check that it has all