Skip to contentSkip to conversation

Bug in xendomains script?

DISCUSSION Min Lee 1 participant 1 message Jun 18, 2010

lore
Share & tools
lore

Min Lee

author
#0 lore raw

Hi, I think this in xendomains script might be a bug.
It seems like it checks errors from 'xm list', but it didn't work in my case. 'xm list' works fine, but it exits the script.

if xm list &> /dev/null
then
exit 0
fi

So, I've changed it to..

if [ "xm list &> /dev/null" != "" ]; then
exit 0
fi

Now it's working... seems like a small bug..
thanks
Min