From a18674d73d1ef3472897c0f2049bf8131b9e4eb6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 1 Jul 2016 11:53:17 +0200 Subject: Adding upstream version 20160701. Signed-off-by: Daniel Baumann --- lib/container/start | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lib/container/start') 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="" -- cgit v1.2.3