Commit eeac0980 by Stéphane Graber

lxc-ubuntu-cloud: Never exit 0 when no container is created

parent 2b014e0c
...@@ -200,7 +200,7 @@ cloneargs=() ...@@ -200,7 +200,7 @@ cloneargs=()
while true while true
do do
case "$1" in case "$1" in
-h|--help) usage $0 && exit 0;; -h|--help) usage $0 && exit 1;;
-p|--path) path=$2; shift 2;; -p|--path) path=$2; shift 2;;
-n|--name) name=$2; shift 2;; -n|--name) name=$2; shift 2;;
-F|--flush-cache) flushcache=1; shift 1;; -F|--flush-cache) flushcache=1; shift 1;;
...@@ -293,7 +293,7 @@ else ...@@ -293,7 +293,7 @@ else
if ! url1=`ubuntu-cloudimg-query $release $stream $arch --format "%{url}\n"`; then if ! url1=`ubuntu-cloudimg-query $release $stream $arch --format "%{url}\n"`; then
echo "There is no download available for release=$release, stream=$stream, arch=$arch" echo "There is no download available for release=$release, stream=$stream, arch=$arch"
[ "$stream" = "daily" ] || echo "You may try with '--stream=daily'" [ "$stream" = "daily" ] || echo "You may try with '--stream=daily'"
exit exit 1
fi fi
url2=`echo $url1 | sed -e 's/.tar.gz/-root\0/' -e 's/.tar.gz/.tar.xz/'` url2=`echo $url1 | sed -e 's/.tar.gz/-root\0/' -e 's/.tar.gz/.tar.xz/'`
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