I don’t have the proper environment set up to test a real patch, but I think this should work
find ${CONFIG_ROOT_DIRLIST} -type f ! -name '*kexec*' | sort > /tmp/newList
cut -d' ' -f3 ${HASH_FILE} | sort | diff - /tmp/newList || fileCountChanged=y
I don’t have the proper environment set up to test a real patch, but I think this should work
find ${CONFIG_ROOT_DIRLIST} -type f ! -name '*kexec*' | sort > /tmp/newList
cut -d' ' -f3 ${HASH_FILE} | sort | diff - /tmp/newList || fileCountChanged=y