summaryrefslogtreecommitdiffstats
path: root/lib/container
diff options
context:
space:
mode:
Diffstat (limited to 'lib/container')
-rwxr-xr-xlib/container/create17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/container/create b/lib/container/create
index 6d6fc86..f5d005c 100755
--- a/lib/container/create
+++ b/lib/container/create
@@ -135,17 +135,18 @@ fi
CNT_AUTO="${CNT_AUTO:-$(hostname -f)}"
-BINDS="$(echo ${BIND} | sed -e 's|;| |g')"
+# Creating bind mounts
+if [ -n "${BIND}" ]
+then
+ BINDS="$(echo ${BIND} | sed -e 's|;| |g')"
-for ENTRY in ${BINDS}
-do
- DIRECTORY="$(echo ${ENTRY} | awk -F: '{ print $1 }')"
+ for BIND in ${BINDS}
+ do
+ DIRECTORY="$(echo ${BIND} | awk -F: '{ print $1 }')"
- if [ ! -e "${DIRECTORY}" ]
- then
mkdir -p "${DIRECTORY}"
- fi
-done
+ done
+fi
# config
mkdir -p "${CONFIG}"