From 77b7b29ed83528768a5a8584cd7b037d8d1064c6 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 3 Jun 2022 19:23:27 +0200 Subject: [PATCH] known_files now as global readonly --- git_helpers | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/git_helpers b/git_helpers index c3ff404..7d6a51e 100755 --- a/git_helpers +++ b/git_helpers @@ -245,12 +245,8 @@ changed_file_names () { git_res=${git_res//[$'\r\n\t']/ } log_debug "$func:${LINENO}: git_res=$git_res" local file_names="" - local known_files=(update.conf current.conf emp.conf) - known_files=(${known_files[@]} device.conf printer.conf opkg_commands) - known_files=(${known_files[@]} ATBQT.ini sysconfig.ini ISMASMgr.ini) - known_files=(${known_files[@]} SystemControl.ini) for f in ${known_files[@]} ; do - if grep -qE ".*/${f}\s+.*" <<< $git_res; then + if grep -qE ".*\s+${f}\s+.*" <<< $git_res; then if ! [ -z $file_names ]; then file_names="$f $file_names" else