diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2016-07-01 09:53:24 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2016-07-01 09:54:30 +0000 |
commit | 98e646a8fb214023ab99f661a6ad2550157c6b95 (patch) | |
tree | 0430656e1e16ec50b9eeede978c85e156a036d8a /lib/container/start | |
parent | Releasing debian version 20160615-2. (diff) | |
download | open-infrastructure-compute-tools-98e646a8fb214023ab99f661a6ad2550157c6b95.tar.xz open-infrastructure-compute-tools-98e646a8fb214023ab99f661a6ad2550157c6b95.zip |
Merging upstream version 20160701.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lib/container/start')
-rwxr-xr-x | lib/container/start | 10 |
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="" |