diff options
author | Dan McGee <dan@archlinux.org> | 2008-10-31 18:59:19 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-10-31 18:59:19 -0500 |
commit | 2890114600baefb6cb1dde513ca3107258b64c92 (patch) | |
tree | fc536ffc5ad869bcb4c70d694728a696bfa43392 /scripts/makepkg.sh.in | |
parent | a63aeed562c8bdd6604ec50e6a4b684f6edabda3 (diff) | |
download | pacman-2890114600baefb6cb1dde513ca3107258b64c92.tar.xz |
makepkg: fix bash substitution to work under older versions
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | scripts/makepkg.sh.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 46173a77..599f0f9c 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -307,12 +307,12 @@ download_file() { # replace %o by the temporary dlfile if it exists if echo "$dlcmd" | grep -q "%o" ; then - dlcmd=${dlcmd//%o/$file.part} + dlcmd=${dlcmd//\%o/$file.part} dlfile="$file.part" fi # add the url, either in place of %u or at the end if echo "$dlcmd" | grep -q "%u" ; then - dlcmd=${dlcmd//%u/$url} + dlcmd=${dlcmd//\%u/$url} else dlcmd="$dlcmd $url" fi |