Skip to content

Commit c6f031f

Browse files
committed
remove format check
1 parent 6383b30 commit c6f031f

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

scripts/functions.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -299,16 +299,8 @@ function copyOutput() {
299299
${K8S_CLI_BIN} cp -n "$namespace" collector:output ./output
300300
flowFile=$(find ./output -name "*txt" | sort | tail -1)
301301
if [[ -n "$flowFile" ]] ; then
302-
jsonFile=$(buildJSON "$flowFile")
303-
if [[ -f `which jq` ]]; then
304-
jq empty < "$jsonFile"
305-
if [[ $? -eq 1 ]] ; then
306-
rm "$jsonFile"
307-
echo "Flow file conversion to JSON failed, please use the txt file: $flowFile"
308-
else
309-
rm "$flowFile"
310-
fi
311-
fi
302+
buildJSON "$flowFile"
303+
rm "$flowFile"
312304
fi
313305
}
314306

@@ -324,7 +316,6 @@ function buildJSON() {
324316
sed '$d' "$file" | sed '$ s/.$//'
325317
echo "]"
326318
} >> "$UPDATED_JSON_FILE"
327-
echo "$UPDATED_JSON_FILE"
328319
}
329320

330321
function deleteServiceMonitor() {

0 commit comments

Comments
 (0)