Skip to content

Commit 359e939

Browse files
committed
remove exits
1 parent 24e8a61 commit 359e939

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

hardware/hardware.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,12 @@ AWS_HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" --connect-timeout 1 'http
135135
if [[ "$AWS_HTTP_CODE" == "200" ]]; then
136136
AWS_INSTANCE_TYPE=$(curl -s --connect-timeout 1 'http://169.254.169.254/latest/meta-data/instance-type')
137137
echo "$AWS_INSTANCE_TYPE" > instance.txt
138-
exit 0
139138
fi
140139

141140
GCP_HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" --connect-timeout 1 -H "Metadata-Flavor: Google" 'http://metadata.google.internal/computeMetadata/v1/')
142141
if [[ "$GCP_HTTP_CODE" == "200" ]]; then
143142
GCP_INSTANCE_TYPE=$(curl -s --connect-timeout 1 -H "Metadata-Flavor: Google" 'http://metadata.google.internal/computeMetadata/v1/instance/machine-type' | awk -F/ '{print $NF}')
144143
echo "$GCP_INSTANCE_TYPE" > instance.txt
145-
exit 0
146144
fi
147145
echo
148146

0 commit comments

Comments
 (0)