diff options
author | Dan Horák <dan@danny.cz> | 2010-05-17 15:14:13 +0200 |
---|---|---|
committer | Dan Horák <dan@danny.cz> | 2010-05-17 15:14:13 +0200 |
commit | bf5bfc3758640762d202200f9ea79e5f2151d876 (patch) | |
tree | b2874ed602e9295ddc4eab2f0ebffce59799acf7 | |
parent | 8eadea7bff892a78877c2204326e85945ca3a16a (diff) | |
download | utils-bf5bfc3758640762d202200f9ea79e5f2151d876.tar.gz utils-bf5bfc3758640762d202200f9ea79e5f2151d876.tar.xz utils-bf5bfc3758640762d202200f9ea79e5f2151d876.zip |
fix IFS usage
-rw-r--r-- | ccw_init | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -10,8 +10,10 @@ get_config_line_by_subchannel() local CHANNEL CHANNEL="$1" while read line; do - IFS=, + OLD_IFS="$IFS" + IFS="," set $line + IFS="$OLD_IFS" for i in $@; do if [ "$CHANNEL" = "$i" ]; then echo $line @@ -29,7 +31,10 @@ if [ $MODE = "dracut" ]; then [ $? -ne 0 -o -z "$CONFIG_LINE" ] && break + OLD_IFS="$IFS" + IFS="," set $CONFIG_LINE + IFS="$OLD_IFS" NETTYPE=$1 shift SUBCHANNELS="$1" |