Change c flag to w [SKIP CI]
parent
4abfe30f53
commit
335c24d55c
8
.runenv
8
.runenv
|
@ -12,13 +12,13 @@ volumes=""
|
|||
|
||||
show_help() {
|
||||
cat << EOF
|
||||
Usage: ${0##*/} [-hxc] [-n NAME] [-p PORT]... [-v LIST]... [CMD]...
|
||||
Usage: ${0##*/} [-hxw] [-n NAME] [-p PORT]... [-v LIST]... [CMD]...
|
||||
Starts an env Docker container. If CMD is specified, starts CMD
|
||||
instead of a shell.
|
||||
|
||||
-h display this help and exit
|
||||
-x delete Docker container after exit. will loose data
|
||||
-c forward \$PWD into $CONTAINER_HOME/src
|
||||
-w forward \$PWD into $CONTAINER_HOME/src
|
||||
-n NAME give container a NAME
|
||||
-p PORT forward host PORT to container PORT
|
||||
-v LIST mount volume LIST. specify as LOCAL:MOUNT
|
||||
|
@ -26,12 +26,12 @@ instead of a shell.
|
|||
EOF
|
||||
}
|
||||
|
||||
while getopts "hxcn:p:v:" opt; do
|
||||
while getopts "hxwn:p:v:" opt; do
|
||||
case "$opt" in
|
||||
x)
|
||||
delete="--rm "
|
||||
;;
|
||||
c)
|
||||
w)
|
||||
volumes="$volumes\n\t-v $PWD:$CONTAINER_HOME/src "
|
||||
;;
|
||||
n)
|
||||
|
|
Loading…
Reference in New Issue