From 335c24d55c1c2b574c8fc2af143aeed0bbee5ee9 Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Mon, 2 Apr 2018 12:19:49 +0800 Subject: [PATCH] Change c flag to w [SKIP CI] --- .runenv | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.runenv b/.runenv index 8c489ec..52d0028 100644 --- a/.runenv +++ b/.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)