summaryrefslogtreecommitdiffstats
path: root/lib/container/start
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2016-07-01 09:53:17 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2016-07-01 09:53:17 +0000
commita18674d73d1ef3472897c0f2049bf8131b9e4eb6 (patch)
tree0910f1df6e4648f6866cc06910314b845bf99bf1 /lib/container/start
parentAdding upstream version 20160615. (diff)
downloadopen-infrastructure-compute-tools-a18674d73d1ef3472897c0f2049bf8131b9e4eb6.tar.xz
open-infrastructure-compute-tools-a18674d73d1ef3472897c0f2049bf8131b9e4eb6.zip
Adding upstream version 20160701.upstream/20160701
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lib/container/start')
-rwxr-xr-xlib/container/start10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/container/start b/lib/container/start
index d026bf1..a4dc033 100755
--- a/lib/container/start
+++ b/lib/container/start
@@ -28,8 +28,8 @@ SYSTEMCTL="true"
Parameters ()
{
- LONG_OPTIONS="name:,nspawn,start"
- OPTIONS="n:"
+ LONG_OPTIONS="name:,nspawn,start,"
+ OPTIONS="n:,"
PARAMETERS="$(getopt --longoptions ${LONG_OPTIONS} --name=${COMMAND} --options ${OPTIONS} --shell sh -- ${@})"
@@ -149,11 +149,7 @@ then
do
DIRECTORY="$(echo ${BIND} | awk -F: '{ print $1 }')"
- if [ ! -e "${DIRECTORY}" ]
- then
- echo "E: '${DIRECTORY}' - no such directory." >&2
- exit 1
- fi
+ mkdir -p "${DIRECTORY}"
done
BIND=""