]> git.sur5r.net Git - kconfig-frontends/commitdiff
scripts/ksync: do not redirect stdin
authorYann E. MORIN" <yann.morin.1998@free.fr>
Tue, 29 May 2012 20:29:44 +0000 (22:29 +0200)
committerYann E. MORIN" <yann.morin.1998@free.fr>
Tue, 29 May 2012 20:29:44 +0000 (22:29 +0200)
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>
scripts/ksync.sh

index 74aad8cb9c345dc52e3d2e5c7063e08caa2c3cd0..0775a6d67967d64d83ec4ab0424c1ff4294a3766 100755 (executable)
@@ -37,11 +37,10 @@ printf "%d.%d.%d%s %s %s\n%s\n"             \
        "${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