From: Stephen Rothwell Date: Tue, 5 Mar 2013 01:37:50 +0000 (+1100) Subject: make_tree_file: stop IFS change from affecting the rest of the script X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=04700b651c2ef8a46d725f05497df5123bfbf317;p=next-scripts make_tree_file: stop IFS change from affecting the rest of the script --- diff --git a/make_tree_file b/make_tree_file index c14a6da..9c5bdb2 100755 --- a/make_tree_file +++ b/make_tree_file @@ -22,6 +22,7 @@ echo 'Trees included into this release: Name Type URL ---- ---- ---' > Next/Trees +( IFS=' ' while read email type name url ref build; do [[ "$email" =~ '^#.*$' ]] && continue @@ -29,8 +30,9 @@ while read email type name url ref build; do [ $(echo "$name" | wc -c) -le 8 ] && tab="\t\t" [ "${ref%:*}" = "${ref}" ] || ref=${ref##*:} [ "$type" = "git" ] && url="$url#$ref" - printf "%s$tab%s\t%s\n" $name $type $url -done <../real_control >>Next/Trees + printf "%s$tab%s\t%s\n" $name $type $url >>Next/Trees +done <../real_control +) mv ../SHA1s Next/SHA1s