##### begin command line parsing ########
-args=()
redep=true
acks=2
wait=false
esac
done
-read host type <<<"$@"
+read -r host type <<<"$@"
case $# in
0|2);;
fai() {
cat <<EOF
-$set_host_tag
dhcp-boot=${host_tag}pxelinux.0,faiserver.lan,faiserver.lan
EOF
}
fi
regex=".*DHCPACK.*$host_regex$"
i=0
- tmp=$(mktemp)
- while (( i != wait_count )) && read line; do
+ while (( i != wait_count )) && read -r line; do
if [[ $line =~ $regex ]]; then
i=$((i+1))
echo $line