From 2e14840e3c480667554ccad29c57b83100c958be Mon Sep 17 00:00:00 2001 From: neilpang Date: Sat, 25 Mar 2017 18:06:19 +0800 Subject: [PATCH] do not clear the value, so that one can pass in the values throw env variables. --- utils/launch.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/utils/launch.sh b/utils/launch.sh index de56758a..a9854e69 100755 --- a/utils/launch.sh +++ b/utils/launch.sh @@ -30,12 +30,10 @@ usage() { NAME="$(basename $0)" REAL_NAME="$(readlink -f $0)" HERE="$(cd "$(dirname "$REAL_NAME")" && pwd)" -PORT="6080" -VNC_DEST="localhost:5900" -CERT="" -WEB="" +PORT="${PORT:-6080}" +VNC_DEST="${VNC_DEST:-localhost:5900}" proxy_pid="" -SSLONLY="" + die() { echo "$*"