summary refs log tree commit diff
path: root/xnuxnu
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-09-06 16:47:11 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-09-06 16:47:11 +0200
commit530f9f0082eb5919f166995e8e5b2e60ea9f8e4d (patch)
tree3b63079548094f719f7ce3ceda9659a4e2e03d62 /xnuxnu
parent8032edb2c8d167ca469a895f757a7c52f0366630 (diff)
downloadxtools-530f9f0082eb5919f166995e8e5b2e60ea9f8e4d.tar.gz
xtools-530f9f0082eb5919f166995e8e5b2e60ea9f8e4d.tar.xz
xtools-530f9f0082eb5919f166995e8e5b2e60ea9f8e4d.zip
xnuxnu: strip v from github tags
Diffstat (limited to 'xnuxnu')
-rwxr-xr-xxnuxnu2
1 files changed, 1 insertions, 1 deletions
diff --git a/xnuxnu b/xnuxnu
index 3be8fd3..26ba397 100755
--- a/xnuxnu
+++ b/xnuxnu
@@ -27,7 +27,7 @@ void_version=$(./xbps-src show "$1" | sed -n '/version/s/[^:]*:[\t]*//p')
 			*github.com*)
 				githubname="$(echo $url | cut -d/ -f4,5)"
 				url="https://api.github.com/repos/$githubname/tags"
-				rx='"name":\s*"\K[^\d]*([\d\.]+)(?=")';;
+				rx='"name":\s*"v?\K[^\d]*([\d\.]+)(?=")';;
 		esac
 
 		echo "fetching $url" 1>&2