1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-08 21:17:43 +03:00

Feature #4217: minor changes

This commit is contained in:
Jaime Melis 2016-01-28 11:24:07 +01:00
parent aecd441bce
commit 87e7a9962e

View File

@ -136,8 +136,6 @@ function s3_request
" https://${BUCKET}.s3.amazonaws.com/${OBJECT}"
}
TEMP=`getopt -o m:s:l:n -l md5:,sha1:,limit:,nodecomp -- "$@"`
if [ $? != 0 ] ; then
@ -200,8 +198,8 @@ http://*|https://*)
ssh://*)
# pseudo-url for ssh transfers ssh://user@host:path
# -l to limit the bw
ssh_src=$(echo $FROM | grep -Po '(?<=ssh://).+')
ssh_arg=(${ssh_src//:/ })
ssh_src=${FROM#ssh://}
ssh_arg=(${ssh_src/:/ })
rmt_cmd="'cat ${ssh_arg[1]}'"