From: Mike Frysinger Date: Sun, 7 Jan 2018 21:36:36 +0000 (-0500) Subject: vcs-url: fix gensub usage X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9430565d78e43d04581e99571061847a99a2140e;p=home.git vcs-url: fix gensub usage --- diff --git a/.bin/vcs-url b/.bin/vcs-url index f2cd3c9..3c1aa8c 100755 --- a/.bin/vcs-url +++ b/.bin/vcs-url @@ -125,7 +125,7 @@ svn_url() { svn info | \ awk '{ if ($1 == "URL:") { - URL = "http://sources.gentoo.org/" gensub(/.*svnroot\/([^/]*).*/,"\\1",""); + URL = "http://sources.gentoo.org/" gensub(/.*svnroot\/([^/]*).*/, "\\1", 1); } else if ($1 == "Revision:") { rev = $2 URL = URL "?rev=" (rev + 1) "&view=rev"