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