index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | William Giokas <1007380@gmail.com> | 2014-04-28 14:16:04 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-09-15 09:30:54 +1000 |
commit | 95e1a1ef8223dea2b8eb41e60428858b1c39f47f (patch) | |
tree | 79a55002756f0e80e1e80e9834920264a58904cb | |
parent | 38b6de937cdbf581d13b404b50183d1b7e457413 (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 6 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 8e8a64ca..6f6d41c8 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -275,10 +275,10 @@ get_url() { get_protocol() { if [[ $1 = *://* ]]; then # strip leading filename - local proto="${1##*::}" + local proto="${1#*::}" printf "%s\n" "${proto%%://*}" elif [[ $1 = *lp:* ]]; then - local proto="${1##*::}" + local proto="${1#*::}" printf "%s\n" "${proto%%lp:*}" else printf "%s\n" local @@ -293,7 +293,7 @@ get_downloadclient() { for i in "${DLAGENTS[@]}"; do local handler="${i%%::*}" if [[ $proto = "$handler" ]]; then - local agent="${i##*::}" + local agent="${i#*::}" break fi done |