0
0
mirror of https://github.com/letic/Shell-Scripts.git synced 2024-09-28 05:56:04 +00:00

Update scp-remote-to-local.sh

This commit is contained in:
Mark McDonnell 2016-03-23 12:04:40 +00:00
parent b5c4cb2e4b
commit 944677eea5

View File

@ -38,7 +38,7 @@ EOF
exit 1 exit 1
fi fi
logdir=$(mktemp -d logs.XXXX) logdir=$(mktemp -d "$component.logs.XXXX")
data=($(curl --silent --cert $cert "$api/instances" | jq --raw-output ".[] | .id,.private_ip_address,.launch_time")) data=($(curl --silent --cert $cert "$api/instances" | jq --raw-output ".[] | .id,.private_ip_address,.launch_time"))
data_len=$((${#data[@]} / 3)) # we know we'll always have a triad of data -> <id>,<ip>,<launch_time> data_len=$((${#data[@]} / 3)) # we know we'll always have a triad of data -> <id>,<ip>,<launch_time>