From 86a1e943ca259c0bfef4174a437a0688065c28ca Mon Sep 17 00:00:00 2001 From: Andy2 Date: Sun, 12 Sep 2010 03:53:39 -0700 Subject: [PATCH] make dict settable too --- xwords4/linux/scripts/newrelay.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/linux/scripts/newrelay.sh b/xwords4/linux/scripts/newrelay.sh index 81967fd7c..577cbabe8 100755 --- a/xwords4/linux/scripts/newrelay.sh +++ b/xwords4/linux/scripts/newrelay.sh @@ -1,6 +1,6 @@ #!/bin/sh -DICT=./dict.xwd +DICT=${DICT:-./dict.xwd} COOKIE=${COOKIE:-foo} NGAMES=${NGAMES:-1} NPLAYERS=${NPLAYERS:-2} @@ -8,7 +8,7 @@ NPLAYERS=${NPLAYERS:-2} usage() { echo "usage: [env=val *] $0" 1>&2 echo " current env variables and their values: " 1>&2 - for VAR in COOKIE NGAMES NPLAYERS; do + for VAR in COOKIE DICT NGAMES NPLAYERS; do echo "$VAR:" $(eval "echo \$${VAR}") 1>&2 done exit 0