Skip to content
Snippets Groups Projects
Commit 73cd9781 authored by jurgenhaas's avatar jurgenhaas
Browse files

Add host directory as env variable L3DHOSTDIR

Add new command "dir" to show workdir
parent e68f4e3e
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
if [[ -n $1 ]]; then
docker inspect ${1}_l3d | jq -r .[0].Config.Env | grep L3DHOSTDIR | cut -d'=' -f 2 | cut -d'"' -f 1
fi
......@@ -6,5 +6,5 @@ echo ""
echo "Version: ${L3DVERSION}"
echo "Support: https://gitlab.lakedrops.com/docker/l3d"
echo ""
echo "Usage: l3d [ help | version | selfupdate [VERSION] | update | reset | PROJECTNAME | delete PROJECTNAME ] | list | info | . "
echo "Usage: l3d [ help | version | selfupdate [VERSION] | update | reset | PROJECTNAME | delete PROJECTNAME ] | list | info | dir | . "
echo ""
......@@ -51,6 +51,7 @@ function startContainer() {
fi
if [[ "$mode" != "REGULAR" ]]; then
start_params=(
--env L3DHOSTDIR=${WORKDIR}
--env L3DVERSION=${L3DVERSION}
--env L3DSHELL=${L3DSHELL}
--env L3D_ALWAYS_CLEANUP=${L3D_ALWAYS_CLEANUP}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment