Commit 3e892287 by Johannes Kastl Committed by Stéphane Graber

lxc-opensuse: Check if given argument is a valid release

parent 0ce75698
...@@ -427,8 +427,29 @@ if [ -z "$path" ]; then ...@@ -427,8 +427,29 @@ if [ -z "$path" ]; then
fi fi
if [ -z "$DISTRO" ]; then if [ -z "$DISTRO" ]; then
echo ""
echo "No release selected, using openSUSE 12.3" echo "No release selected, using openSUSE 12.3"
DISTRO=12.3 DISTRO=12.3
else
echo ""
case "$DISTRO" in
12.3)
echo "Selected openSUSE 12.3"
;;
13.1)
echo "Selected openSUSE 13.1"
;;
13.2)
echo "Selected openSUSE 13.2"
;;
*)
echo "You have chosen an invalid release, quitting..."
exit 1
;;
esac
fi fi
......
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