We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d06f013 commit be20507Copy full SHA for be20507
1 file changed
oscal-tools/replace-uuids.sh
@@ -19,7 +19,7 @@ while read -r line; do
19
uuid="$(sed 's/^.*"uuid":"\(.*\)"/\1/g' <<< "$line")" #Extracting the uuid
20
21
#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
+ if ! echo "${uuid_array[@]}" | grep --quiet --only-matching "$uuid"; then
23
#adding the uuid (in the current line) to the array of replaced uuids
24
uuid_array+=("$uuid")
25
0 commit comments