Skip to content

Commit

Permalink
Merge pull request #12994 from jan-cerny/broken_grep
Browse files Browse the repository at this point in the history
Fix grep commands
  • Loading branch information
Mab879 authored Feb 11, 2025
2 parents bc0bfa6 + 000366c commit fdbcf30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test -f ${CONF_FILE} || touch ${CONF_FILE}
# Ensure CRYPTO_POLICY is not commented out
sed -i 's/#CRYPTO_POLICY=/CRYPTO_POLICY=/' ${CONF_FILE}

if ! grep -q "$correct_value" "$CONF_FILE"; then
if ! grep -q "\\$correct_value" "$CONF_FILE"; then
# We need to get the existing value, using PCRE to maintain same regex
existing_value=$(grep -Po '(-oCiphers=\S+)' ${CONF_FILE})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test -f ${CONF_FILE} || touch ${CONF_FILE}
# Ensure CRYPTO_POLICY is not commented out
sed -i 's/#CRYPTO_POLICY=/CRYPTO_POLICY=/' ${CONF_FILE}

if ! grep -q "$correct_value" "$CONF_FILE"; then
if ! grep -q "\\$correct_value" "$CONF_FILE"; then
# We need to get the existing value, using PCRE to maintain same regex
existing_value=$(grep -Po '(-oMACs=\S+)' ${CONF_FILE})

Expand Down

0 comments on commit fdbcf30

Please sign in to comment.