Browse Source

* improved bin/sde-download-get to support multi-argument download locations

git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21864 10447126-35f2-4685-b0cf-6dd780d3921f
misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
733bf14253
1 changed files with 5 additions and 6 deletions
  1. +5
    -6
      bin/sde-download-get

+ 5
- 6
bin/sde-download-get

@ -57,18 +57,17 @@ while [ $# -gt 0 ]; do
done
# now take the real arguments
if [ $# -ne 2 ]; then
if [ $# -lt 2 ]; then
echo_error "Not enough arguments given."
download_usage
exit -1
fi
target="$1"
source="$2"
protocol=${source%%:*}
target="$1"; shift
protocol=${1%%:*}
# debug output
[ $verbose -le 1 ] || echo_info "($protocol) $source"
[ $verbose -le 1 ] || echo_info "($protocol) $@"
# find the right handler
if [ -x "$SDEROOT/bin/sde-download-$protocol" ]; then
@ -91,5 +90,5 @@ elif [ ! -e "$target.lock" ]; then
handleropt="-q"
fi
exec "$handler" $handleropt -- "$target" "$source"
exec "$handler" $handleropt -- "$target" "$@"
fi

Loading…
Cancel
Save