mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-10-15 18:56:24 +02:00
FIX: Improve soup's local file modification logic #8972
This commit is contained in:
1 parent
208c3d96e9
commit
af85c6261b
1 file changed
+1
-1
@@ -212,7 +212,7 @@ check_local_mods() {
|
||||
if [[ -f $default_file ]]; then
|
||||
file_diff=$(diff "$default_file" "$local_file" )
|
||||
if [[ ! " ${local_ignore_arr[*]} " =~ " ${local_file} " ]]; then
|
||||
if [[ $(echo "$file_diff" | grep -c "^<") -gt 0 ]]; then
|
||||
if [[ $(echo "$file_diff" | grep -Ec "^[<>]") -gt 0 ]]; then
|
||||
local_mod_arr+=( "$local_file" )
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user