Merge branch 'maint'
This commit is contained in:
commit
9394f229a0
1 changed files with 2 additions and 2 deletions
|
@ -307,12 +307,12 @@ download_file() {
|
||||||
|
|
||||||
# replace %o by the temporary dlfile if it exists
|
# replace %o by the temporary dlfile if it exists
|
||||||
if echo "$dlcmd" | grep -q "%o" ; then
|
if echo "$dlcmd" | grep -q "%o" ; then
|
||||||
dlcmd=${dlcmd//%o/$file.part}
|
dlcmd=${dlcmd//\%o/$file.part}
|
||||||
dlfile="$file.part"
|
dlfile="$file.part"
|
||||||
fi
|
fi
|
||||||
# add the url, either in place of %u or at the end
|
# add the url, either in place of %u or at the end
|
||||||
if echo "$dlcmd" | grep -q "%u" ; then
|
if echo "$dlcmd" | grep -q "%u" ; then
|
||||||
dlcmd=${dlcmd//%u/$url}
|
dlcmd=${dlcmd//\%u/$url}
|
||||||
else
|
else
|
||||||
dlcmd="$dlcmd $url"
|
dlcmd="$dlcmd $url"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue