| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent edd5f9a commit 0715ee2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -141,7 +141,7 @@ check_suspended_processes() { | |||
| 141 | 141 | local suspended=($($AWS_CLI autoscaling describe-auto-scaling-groups \ | |
| 142 | 142 | --auto-scaling-group-name \"${asg_name}\" \ | |
| 143 | 143 | --query \'AutoScalingGroups[].SuspendedProcesses\' \ | |
| 144 | - --output text | awk \'{printf $1\" \"}\')) | ||
| 144 | + --output text \| awk \'{printf \$1\" \"}\')) | ||
| 145 | 145 | ||
| 146 | 146 | if [ ${#suspended[@]} -eq 0 ]; then | |
| 147 | 147 | msg "No processes were suspended on the ASG before starting." | |
@@ -596,8 +596,8 @@ get_elb_list() { | |||
| 596 | 596 | local elb_list="" | |
| 597 | 597 | ||
| 598 | 598 | elb_list=$($AWS_CLI elb describe-load-balancers \ | |
| 599 | - --query \"LoadBalancerDescriptions[].[join(',',Instances[?InstanceId=='$instance_id'].InstanceId),LoadBalancerName]\" \ | ||
| 600 | - --output text | grep $instance_id | awk \'{ORS=\" \";print $2}\') | ||
| 599 | + --query \"LoadBalancerDescriptions[].[join\(\',\',Instances[?InstanceId==\'$instance_id\'].InstanceId\),LoadBalancerName]\" \ | ||
| 600 | + --output text \| grep $instance_id \| awk \'{ORS=\" \"\;print \$2}\') | ||
| 601 | 601 | ||
| 602 | 602 | if [ -z "$elb_list" ]; then | |
| 603 | 603 | return 1 | |
@@ -642,7 +642,7 @@ register_instance() { | |||
| 642 | 642 | # $MIN_CLI_VERSION. Returns non-zero if the version is not high enough. | |
| 643 | 643 | check_cli_version() { | |
| 644 | 644 | if [ -z $1 ]; then | |
| 645 | - version=$($AWS_CLI --version 2>&1 | cut -f1 -d' ' | cut -f2 -d/) | ||
| 645 | + version=$($AWS_CLI --version 2\>\&1 \| cut -f1 -d\' \' \| cut -f2 -d/) | ||
| 646 | 646 | else | |
| 647 | 647 | version=$1 | |
| 648 | 648 | fi | |
| Back | FazBrowse Home | New Git URL |
0 commit comments