Skip to content

Commit ac052d4

Browse files
Update get_support_bundle.sh
1 parent 66d8129 commit ac052d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

support_bundle/get_support_bundle.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,12 @@ main() {
166166
echo "The API_KEY supplied is Unauthorized. Please check and try again. Return Code: ${RETVAL}"
167167
exit 1
168168
fi
169+
169170
curl -ks -H "Authorization: Bearer ${API_KEY}" -H "Content-Type: application/json" "${API_URL}/api/admin/customer/1/fastPathSettings" >> ${LOG_DIR}/fastPath_settings.json
170171
curl -ks -H "Authorization: Bearer ${API_KEY}" -H "Content-Type: application/json" "${API_URL}/api/admin/customer/1/indexSettings" >> ${LOG_DIR}/index_settings.json
172+
else
173+
echo "We could not determine the backend version. Exiting."
174+
exit 1
171175
fi
172176

173177
curl -ks -H "Authorization: Bearer ${API_KEY}" -H "Content-Type: application/json" "${API_URL}/api/license" >> ${LOG_DIR}/license.json
@@ -201,6 +205,9 @@ main() {
201205
echo "The API_KEY supplied is Unauthorized. Please check and try again. Return Code: ${RETVAL}"
202206
exit 1
203207
fi
208+
else
209+
echo "We cannot determine the backend version. Exiting."
210+
exit 1
204211
fi
205212

206213
# Check if ScanningV1 is enabled, and if so, do ...

0 commit comments

Comments
 (0)