summaryrefslogtreecommitdiffstats
path: root/lib/container/start
diff options
context:
space:
mode:
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=""