Commit 5add82c8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: refactor output directory handling with separate USEOUTPUTDIR check

parent 3aef11fb
...@@ -1883,6 +1883,10 @@ fi ...@@ -1883,6 +1883,10 @@ fi
if is_url "$MASK" ; then if is_url "$MASK" ; then
#[ -z "$USEOUTPUTDIR" ] && fatal "eget supports only one URL as argument by default, use --output-dir to download in parallel" #[ -z "$USEOUTPUTDIR" ] && fatal "eget supports only one URL as argument by default, use --output-dir to download in parallel"
USEOUTPUTDIR="." USEOUTPUTDIR="."
fi
# if more than one file or if --output-dir is used
if [ -n "$USEOUTPUTDIR" ] ; then
CURLOUTPUTDIR="--create-dirs --output-dir $USEOUTPUTDIR" CURLOUTPUTDIR="--create-dirs --output-dir $USEOUTPUTDIR"
pget "$@" pget "$@"
exit exit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment