File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -135,14 +135,12 @@ AWS_HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" --connect-timeout 1 'http
135135if [[ " $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
139138fi
140139
141140GCP_HTTP_CODE=$( curl -s -o /dev/null -w " %{http_code}" --connect-timeout 1 -H " Metadata-Flavor: Google" ' http://metadata.google.internal/computeMetadata/v1/' )
142141if [[ " $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
146144fi
147145echo
148146
You can’t perform that action at this time.
0 commit comments