Skip to content

Commit 513e93d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c7a74b0 commit 513e93d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

risuclient/plugins/core/CCN-STIC/619/vulnerability-management.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ if [[ -f ${YUM_HISTORY_FILE} ]]; then
213213

214214
# Check for recent updates
215215
recent_updates=$(head -10 "${YUM_HISTORY_FILE}" | grep -c "Update" 2>/dev/null || echo "0")
216-
recent_updates=${recent_updates// /} # Remove any spaces
217-
recent_updates=${recent_updates//[^0-9]/} # Keep only numbers
216+
recent_updates=${recent_updates// /} # Remove any spaces
217+
recent_updates=${recent_updates//[^0-9]/} # Keep only numbers
218218
if [[ ${recent_updates:-0} -eq 0 ]]; then
219219
echo "No recent system updates found" >&2
220220
flag=1

risuclient/plugins/core/system/freeradius_incompatible_regex.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ is_required_file ${RISU_ROOT}/etc/raddb/radiusd.conf
2828

2929
RADDB="${RISU_ROOT}/etc/raddb"
3030

31-
OLD_REGEXP='\\\\\\.' # \\. e.g. "if (&User-Name =~ /\\.\\./ ) {"
31+
OLD_REGEXP='\\\\\\.' # \\. e.g. "if (&User-Name =~ /\\.\\./ ) {"
3232
NEW_REGEXP='[^\\]\\.' # \. e.g. "if (&User-Name =~ /\.\./ ) {"
3333
REGEXP_MODE="^correct_escapes\\s*=\\s*true$" # correct_escapes = true
3434

0 commit comments

Comments
 (0)