Skip to content

Commit 30f2915

Browse files
authored
Update reboot_instance_aws.sh
1 parent d353124 commit 30f2915

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Misc/Cloud/reboot_instance_aws.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@
2626
export PATH="${PATH}:${SYSTMP}"
2727
fi
2828
#AWS_ACCESS_KEY_ID
29-
if [ -z "$AWS_ACCESS_KEY_ID" ] || [ -z "${AWS_ACCESS_KEY_ID+x}" ]; then
29+
if [ -z "${AWS_ACCESS_KEY_ID}" ] || [ -z "${AWS_ACCESS_KEY_ID+x}" ]; then
3030
echo -e "\n[-] AWS_ACCESS_KEY_ID isn't Exported\n"
3131
exit 1
3232
fi
3333
#AWS_ACCESS_KEY_ID
34-
if [ -z "$AWS_ACCESS_KEY_ID" ] || [ -z "${AWS_SECRET_ACCESS_KEY+x}" ]; then
34+
if [ -z "${AWS_ACCESS_KEY_ID}" ] || [ -z "${AWS_SECRET_ACCESS_KEY+x}" ]; then
3535
echo -e "\n[-] AWS_SECRET_ACCESS_KEY isn't Exported\n"
3636
exit 1
3737
fi
3838
#AWS_REGION
39-
if [ -z "$AWS_REGION" ] || [ -z "${AWS_REGION+x}" ]; then
39+
if [ -z "${AWS_REGION}" ] || [ -z "${AWS_REGION+x}" ]; then
4040
echo -e "\n[-] AWS_REGION isn't Exported\n"
4141
exit 1
4242
fi
4343
#EC2_INSTANCE_NAME
44-
if [ -z "$EC2_INSTANCE_NAME" ] || [ -z "${EC2_INSTANCE_NAME+x}" ]; then
44+
if [ -z "${EC2_INSTANCE_NAME}" ] || [ -z "${EC2_INSTANCE_NAME+x}" ]; then
4545
echo -e "\n[-] EC2_INSTANCE_NAME isn't Exported\n"
4646
exit 1
4747
fi
4848
#EC2_INSTANCE_ID
49-
if [ -z "$EC2_INSTANCE_ID" ] || [ -z "${EC2_INSTANCE_ID+x}" ]; then
49+
if [ -z "${EC2_INSTANCE_ID}" ] || [ -z "${EC2_INSTANCE_ID+x}" ]; then
5050
echo -e "\n[-] EC2_INSTANCE_ID isn't Exported\n"
5151
exit 1
5252
fi
@@ -75,4 +75,4 @@
7575
#END
7676
unset EC2_IP_OLD EC2_IP_NEW
7777
#EOF
78-
#----------------------------------------------------------------------------#
78+
#----------------------------------------------------------------------------#

0 commit comments

Comments
 (0)