mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
dodiscovery: fix syntax error in case flag_serial is not defined
This commit is contained in:
parent
2876dd5161
commit
ea9b20e1fe
@ -154,7 +154,7 @@ if [ "$flag_mtm" ] && [ "$MTM" != "unknown" ]; then
|
||||
echo "<mtm>$MTM</mtm>" >> /tmp/discopacket
|
||||
fi
|
||||
flag_serial=`echo "$SERIAL" | sed 's/0//g'`
|
||||
if [ $flag_serial ] && [ "$SERIAL" != "unknown" ]; then
|
||||
if [ "$flag_serial" ] && [ "$SERIAL" != "unknown" ]; then
|
||||
SERIAL=`echo $SERIAL | sed 's/\.//g'`
|
||||
echo "<serial>$SERIAL</serial>" >> /tmp/discopacket
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user