diff options
author | Allan McRae <allan@archlinux.org> | 2012-08-28 11:42:06 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-09-18 08:41:02 -0500 |
commit | 8b9cb8e03de275fb7b71b3fdc970856158b10ff2 (patch) | |
tree | dce1767c095e41c8307ab5b3e66370038614c8a4 /scripts | |
parent | 306c274239728a6307c06038e51f70ed904ba84b (diff) |
makepkg: allow fragment to contain a "#" character
The frament element of a vcs url may contain the "#" charcter in the
(e.g) branch or tag name.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.sh.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 7e5aa959..aed6b8be 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -380,7 +380,7 @@ download_file() { download_git() { local netfile=$1 - local fragment=${netfile##*#} + local fragment=${netfile#*#} if [[ $fragment = "$netfile" ]]; then unset fragment fi @@ -460,7 +460,7 @@ download_git() { download_hg() { local netfile=$1 - local fragment=${netfile##*#} + local fragment=${netfile#*#} if [[ $fragment = "$netfile" ]]; then unset fragment fi @@ -520,7 +520,7 @@ download_hg() { download_svn() { local netfile=$1 - local fragment=${netfile##*#} + local fragment=${netfile#*#} if [[ $fragment = "$netfile" ]]; then unset fragment fi |