2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00

Fix check for MTM values with spaces

This commit is contained in:
Samveen Gulati
2017-11-23 10:05:47 +00:00
parent f5437609d4
commit 04fba5e277

View File

@@ -149,7 +149,7 @@ if [ "$UUID" != "unknown" ]; then
fi
flag_mtm=`echo "$MTM" | sed 's/0//g'`
if [ $flag_mtm ] && [ "$MTM" != "unknown" ]; then
if [ "$flag_mtm" ] && [ "$MTM" != "unknown" ]; then
MTM=`echo $MTM | sed 's/\.//g'`
echo "<mtm>$MTM</mtm>" >> /tmp/discopacket
fi