File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 9
9
#
10
10
11
11
scriptname=" aws-list"
12
- scriptbuildnum=" 1.0.1a "
13
- scriptbuilddate=" 2017-04-13 "
12
+ scriptbuildnum=" 1.0.2 "
13
+ scriptbuilddate=" 2017-05-12 "
14
14
15
15
# source aws-quick-cli init files to add color and display_ver function
16
16
scriptDir=$( reldir=$( dirname -- " $0 " ; echo x) ; reldir=${reldir% ?x} ; cd -- " $reldir " && pwd && echo x) ; scriptDir=${scriptDir% ?x}
@@ -105,7 +105,7 @@ if [ ${#InstanceData[@]} -ne 0 ]; then
105
105
InstanceStatus=${InstanceData[$j+2]}
106
106
InstanceName=${InstanceData[$j+3]}
107
107
108
- ImageDescription=( $( aws ec2 describe-images --image-ids " ${ImageAMI} " --query ' Images[*].{Name:Name}' --output text) )
108
+ ImageDescription=$( aws ec2 describe-images --image-ids " ${ImageAMI} " --query ' Images[*].{Name:Name}' --output text)
109
109
110
110
case ${InstanceStatus} in
111
111
running) CLRstatus=${CLRsuccess} ;;
@@ -116,7 +116,7 @@ if [ ${#InstanceData[@]} -ne 0 ]; then
116
116
* ) CLRstatus=${CLRnormal} ;;
117
117
esac
118
118
echo -e " \t${CLRnormal} Name: ${CLRtitle}${InstanceName}${CLRnormal} \t\tID: ${CLRtitle}${InstanceId}${CLRnormal} \t\tStatus: ${CLRstatus}${InstanceStatus} "
119
- echo -e " \t${CLRnormal} AMI: ${CLRtitle}${ImageAMI}${CLRnormal} \t${CLRnormal} AMI Name: ${CLRtitle}${ImageDescription[0] }${CLRnormal} \n"
119
+ echo -e " \t${CLRnormal} AMI: ${CLRtitle}${ImageAMI}${CLRnormal} \t${CLRnormal} AMI Name: ${CLRtitle}${ImageDescription: 0 : 45 }${CLRnormal} \n"
120
120
done
121
121
122
122
else
Original file line number Diff line number Diff line change 9
9
#
10
10
11
11
scriptname=" aws-ssh"
12
- scriptbuildnum=" 1.0.1a "
13
- scriptbuilddate=" 2017-04-13 "
12
+ scriptbuildnum=" 1.0.2 "
13
+ scriptbuilddate=" 2017-05-12 "
14
14
15
15
# source aws-quick-cli init files to add color and display_ver function
16
16
scriptDir=$( reldir=$( dirname -- " $0 " ; echo x) ; reldir=${reldir% ?x} ; cd -- " $reldir " && pwd && echo x) ; scriptDir=${scriptDir% ?x}
Original file line number Diff line number Diff line change 9
9
#
10
10
11
11
scriptname=" aws-toggle"
12
- scriptbuildnum=" 1.0.1a "
13
- scriptbuilddate=" 2017-04-13 "
12
+ scriptbuildnum=" 1.0.2 "
13
+ scriptbuilddate=" 2017-05-12 "
14
14
15
15
# ###########################################################
16
16
# ## FUNCTIONS
@@ -26,7 +26,7 @@ display_help_text() {
26
26
echo -e " \n${CLRtitle} \tOPTIONS:${CLRnormal} "
27
27
echo -e " ${CLRtitle2} -v\t${CLRnormal} : display version info"
28
28
echo -e " ${CLRtitle2} -h\t${CLRnormal} : display help info"
29
- echo
29
+ echo
30
30
exit 0
31
31
}
32
32
You can’t perform that action at this time.
0 commit comments