init_component: slightly more robust read (raw input, succeed on non-terminated last line);
authorwenzelm
Sun Nov 08 13:44:16 2009 +0100 (2009-11-08)
changeset 33512771ec7306438
parent 33511 5b31218a3a8c
child 33513 b2259183e282
child 33525 05c384cb1181
init_component: slightly more robust read (raw input, succeed on non-terminated last line);
lib/scripts/getsettings
     1.1 --- a/lib/scripts/getsettings	Sat Nov 07 18:55:50 2009 +0000
     1.2 +++ b/lib/scripts/getsettings	Sun Nov 08 13:44:16 2009 +0100
     1.3 @@ -98,7 +98,8 @@
     1.4    fi
     1.5    if [ -f "$COMPONENT/etc/components" ]; then
     1.6      {
     1.7 -      while read; do
     1.8 +      while { unset REPLY; read -r; test "$?" = 0 -o -n "$REPLY"; }
     1.9 +      do
    1.10          case "$REPLY" in
    1.11            \#* | "") ;;
    1.12            /*) init_component "$REPLY" ;;