diff options
author | P. J. McDermott <pjm@nac.net> | 2012-09-09 22:23:26 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-09-09 22:23:26 (EDT) |
commit | 53becbc0ae81f95babbbd8b223cb683847f965f5 (patch) | |
tree | 41330deb21ccfe3ebf8e2ec406a42dbe233562de | |
parent | 9ad75a2d29a6937026f0636c1e7acb04ea08b271 (diff) |
Reset IFS as soon as possible in ob_reduce_deps.
-rw-r--r-- | lib/deps.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/deps.sh b/lib/deps.sh index 207bb29..01247a0 100644 --- a/lib/deps.sh +++ b/lib/deps.sh @@ -148,10 +148,12 @@ ob_reduce_deps() _obrd_orig_ifs="${IFS}" IFS=',' for _obrd_dep_and in ${_obrd_deps}; do + IFS="${_obrd_orig_ifs}" if ! ${_obrd_union}; then IFS='|' _obrd_dep_or_list= for _obrd_dep_or in ${_obrd_dep_and}; do + IFS="${_obrd_orig_ifs}" _obrd_dep="$(ob_parse_dep -a "${_obrd_host_arch}" \ "${_obrd_dep_or}")" if [ -n "${_obrd_dep}" ]; then @@ -171,7 +173,6 @@ ob_reduce_deps() : fi done - IFS="${_obrd_orig_ifs}" echo "${_obrd_dep_list}" |