Commit 9acc339a by Michael Holzt Committed by Daniel Lezcano

fix misleading error message in lxc_create

When the configuration path does not exist, lxc_create misleadingly tells that it was not set. Signed-off-by: 's avatarMichael Holzt <lxc@my.fqdn.org> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 2b3d393b
...@@ -84,6 +84,16 @@ while true; do ...@@ -84,6 +84,16 @@ while true; do
esac esac
done done
if [ -z "$lxc_path" ]; then
echo "no configuration path defined !"
exit 1
fi
if [ ! -r $lxc_path ]; then
echo "configuration path '$lxc_path' not found"
exit 1
fi
if [ -z "$lxc_name" ]; then if [ -z "$lxc_name" ]; then
echo "no container name specified" echo "no container name specified"
usage usage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment