advanced changed_file_names
This commit is contained in:
parent
bc4977bf7f
commit
094580e294
13
git_helpers
13
git_helpers
@ -238,13 +238,20 @@ changed_file_names () {
|
||||
git_res=${git_res//[$'\r\n\t']/ }
|
||||
log_debug "$func:${LINENO}: git_res=$git_res"
|
||||
local file_names=""
|
||||
for f in 'update.conf' 'opkg_commands' ; do
|
||||
if grep -qE ".*${f}.*?" <<< $git_res; then
|
||||
local known_files=(update.conf current.conf emp.conf)
|
||||
known_files=(${known_files[@]} device.conf printer.conf opkg_commands)
|
||||
for f in ${known_files[@]} ; do
|
||||
if grep -qE ".*/${f}\s+.*" <<< $git_res; then
|
||||
if ! [ -z $file_names ]; then
|
||||
file_names="$f $file_names"
|
||||
else
|
||||
file_names="$f"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
cd_home ; printf "$file_names"
|
||||
cd_home; log_debug "$func:${LINENO}: file_names=$file_names" ;
|
||||
printf '%s' "$file_names"
|
||||
else
|
||||
log_crit "$func:${LINENO}: cannot cd to $customer_repository "\
|
||||
"while in $PWD"
|
||||
|
Loading…
Reference in New Issue
Block a user