Skip to content

Commit be20507

Browse files
mikeisen1Kyle Laker
andauthored
Ignore output of commands
Co-authored-by: Kyle Laker <klaker@easydynamics.com>
1 parent d06f013 commit be20507

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

oscal-tools/replace-uuids.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ while read -r line; do
1919
uuid="$(sed 's/^.*"uuid":"\(.*\)"/\1/g' <<< "$line")" #Extracting the uuid
2020

2121
#Checking if we have already found the current value of uuid in the file
22-
if [[ ! $(echo "${uuid_array[@]}" | grep --quiet --only-matching "$uuid") ]]; then
22+
if ! echo "${uuid_array[@]}" | grep --quiet --only-matching "$uuid"; then
2323
#adding the uuid (in the current line) to the array of replaced uuids
2424
uuid_array+=("$uuid")
2525

0 commit comments

Comments
 (0)