@@ -125,17 +125,21 @@ else
125125 cp intermediateCollectionPostBody.json " $COLLECTION_TRANSFORMED_FILE_NAME "
126126fi
127127
128+ # Remove trailing whitespaces by reformatting the JSON
129+ echo " Removing all whitespaces from the final JSON file"
130+ jq -c ' .' " $COLLECTION_TRANSFORMED_FILE_NAME " > tmpnowhitespaces.json && mv tmpnowhitespaces.json " $COLLECTION_TRANSFORMED_FILE_NAME "
131+
128132# Clean up temporary files
129133echo " Removing temporary files"
130134rm intermediateCollectionWrapped.json \
131- intermediateCollectionDisableQueryParam.json \
132- intermediateCollectionNoPostmanID.json \
133- intermediateCollectionNoCircular.json \
134- intermediateCollectionWithName.json \
135- intermediateCollectionWithDescription.json \
136- intermediateCollectionWithBaseURL.json \
137- intermediateCollectionWithLinks.json \
138- intermediateCollectionPostBody.json \
139- intermediateCollectionWithNoVar.json
135+ intermediateCollectionDisableQueryParam.json \
136+ intermediateCollectionNoPostmanID.json \
137+ intermediateCollectionNoCircular.json \
138+ intermediateCollectionWithName.json \
139+ intermediateCollectionWithDescription.json \
140+ intermediateCollectionWithBaseURL.json \
141+ intermediateCollectionWithLinks.json \
142+ intermediateCollectionPostBody.json \
143+ intermediateCollectionWithNoVar.json
140144
141145popd -0
0 commit comments