|
@@ -17,15 +17,15 @@
|
|
|
# We want to catch any unexpected failure, and exit immediately.
|
|
|
set -e
|
|
|
|
|
|
-export BR_BACKEND_DL_GETOPTS=":hc:d:o:n:N:H:ru:qf:e"
|
|
|
+export BR_BACKEND_DL_GETOPTS=":hc:d:o:n:N:H:lru:qf:e"
|
|
|
|
|
|
main() {
|
|
|
local OPT OPTARG
|
|
|
- local backend output hfile recurse quiet rc
|
|
|
+ local backend output hfile large_file recurse quiet rc
|
|
|
local -a uris
|
|
|
|
|
|
# Parse our options; anything after '--' is for the backend
|
|
|
- while getopts ":c:d:D:o:n:N:H:rf:u:q" OPT; do
|
|
|
+ while getopts ":c:d:D:o:n:N:H:lrf:u:q" OPT; do
|
|
|
case "${OPT}" in
|
|
|
c) cset="${OPTARG}";;
|
|
|
d) dl_dir="${OPTARG}";;
|
|
@@ -34,6 +34,7 @@ main() {
|
|
|
n) raw_base_name="${OPTARG}";;
|
|
|
N) base_name="${OPTARG}";;
|
|
|
H) hfile="${OPTARG}";;
|
|
|
+ l) large_file="-l";;
|
|
|
r) recurse="-r";;
|
|
|
f) filename="${OPTARG}";;
|
|
|
u) uris+=( "${OPTARG}" );;
|
|
@@ -127,7 +128,7 @@ main() {
|
|
|
-f "${filename}" \
|
|
|
-u "${uri}" \
|
|
|
-o "${tmpf}" \
|
|
|
- ${quiet} ${recurse} -- "${@}"
|
|
|
+ ${quiet} ${large_file} ${recurse} -- "${@}"
|
|
|
then
|
|
|
# cd back to keep path coherence
|
|
|
cd "${OLDPWD}"
|