If stdin is redirected, and a patch does not apply cleanly, the user won't
be able to act on patch messages, and patch will get confused because it
would read patch data when it prompts the user.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
"${kf_version}" \
>.version
-exec <scripts/kernel2kfrontends.list
while read k_file trash kf_file; do
mkdir -p "${kf_file%/*}"
cp -v "${k_dir}/${k_file}" "${kf_file}"
if [ -f "${kf_file}.patch" ]; then
patch --no-backup-if-mismatch -g0 -F1 -p1 -f <"${kf_file}.patch"
fi
-done
+done <scripts/kernel2kfrontends.list