@@ -28,10 +28,11 @@ pushd "${OPENAPI_FOLDER}"
2828current_collection_name=" ⭐MongoDB Atlas Administration API ${current_api_revision} " 
2929
3030echo  " Fetching list of current collections" 
31- echo  " curl -o ${COLLECTIONS_LIST_FILE}   
31+ echo  " curl -o ${COLLECTIONS_LIST_FILE} 
3232     --location 'https://api.getpostman.com/collections?workspace=${WORKSPACE_ID} ' 
3333     --header 'X-API-Key: **********'"  
34- curl --show-error --fail --silent -o " ${COLLECTIONS_LIST_FILE} " 
34+ curl --show-error \
35+      --fail --silent -o " ${COLLECTIONS_LIST_FILE} " 
3536     --location " https://api.getpostman.com/collections?workspace=${WORKSPACE_ID} " 
3637     --header " X-API-Key: ${POSTMAN_API_KEY} " 
3738
@@ -63,7 +64,11 @@ if [  "$collection_exists" = "false" ]; then
6364     --header 'Content-Type: application/json' 
6465     --header 'X-API-Key: **********' 
6566     --data ${collection_transformed_path} "  
66-   curl --show-error --fail --retry 5 --retry-all-errors --silent \
67+   curl --show-error \
68+        --fail \
69+        --retry 5 \
70+        --retry-all-errors \
71+        --silent \
6772       --location " https://api.getpostman.com/collections?workspace=${WORKSPACE_ID} " 
6873       --header " Content-Type: application/json" 
6974       --header " X-API-Key: ${POSTMAN_API_KEY} " 
8085     --header 'X-API-Key: **********' 
8186     --data ${collection_transformed_path} "  
8287
83-   curl --show-error --fail --retry 5 --retry-all-errors --silent --request PUT \
88+   curl --show-error \
89+        --fail \
90+        --retry 5 \
91+        --retry-all-errors \
92+        --silent \
93+        --request PUT \
8494       --location " https://api.getpostman.com/collections/${collection_id} " 
8595       --header " Content-Type: application/json" 
8696       --header " X-API-Key: ${POSTMAN_API_KEY} " 
0 commit comments