makepkg: fix bash substitution to work under older versions

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2008-10-31 18:59:19 -05:00
parent a63aeed562
commit 2890114600

View file

@ -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