Merge branch 'maint'

This commit is contained in:
Dan McGee 2008-10-31 19:55:50 -05:00
commit 9394f229a0
1 changed files with 2 additions and 2 deletions

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