diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-11-04 09:13:56 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-11-04 10:12:17 +0100 |
commit | d1355b60202628e2ee8dc3b55f5829586b3f6234 (patch) | |
tree | ce23e6b422c8e5c2ad4f1a0f709c93c66bd93ab5 | |
parent | 29e4c19f755534e39408e66033003b8ec539f4d1 (diff) | |
download | ptxdist-d1355b60202628e2ee8dc3b55f5829586b3f6234.tar.gz ptxdist-d1355b60202628e2ee8dc3b55f5829586b3f6234.tar.xz |
[ptxd_lib_kgen] resore IFS
In a9a3c5e2a70ae45317241e7d10bf00d22d0598ac IFS was changed in
ptxd_kgen but not reset. This resulted in strange side effects
including a broken "ptxdist menu". Reset IFS to its old value to
avoid this.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
(cherry picked from commit caf9b2a5c16543ea3c66d0c8615a7bb7a8a5259c)
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | scripts/lib/ptxd_lib_kgen.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_kgen.sh b/scripts/lib/ptxd_lib_kgen.sh index 97c2a81a4..f1c048205 100644 --- a/scripts/lib/ptxd_lib_kgen.sh +++ b/scripts/lib/ptxd_lib_kgen.sh @@ -86,6 +86,7 @@ EOF fi # transmogrify part into subdir + local oldIFS="$IFS" case "${kgen_part}" in ptx) IFS=: kgen_dirs=( ${PTXDIST_PATH_RULES} ) ;; platform) IFS=: kgen_dirs=( ${PTXDIST_PATH_PLATFORMS} ) ;; @@ -97,6 +98,7 @@ ${PROMPT}error: '${FUNCNAME}' doesn't support '${part}', yet EOF exit 1 esac + IFS="$oldIFS" rm -rf "${PTX_KGEN_DIR}/${kgen_part}" && mkdir -p "${PTX_KGEN_DIR}/${kgen_part}" && |