From 98e646a8fb214023ab99f661a6ad2550157c6b95 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 1 Jul 2016 11:53:24 +0200 Subject: Merging 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