diff options
Diffstat (limited to 'tests/manual/scenegraph_lancelot/hostinfo.sh')
-rw-r--r-- | tests/manual/scenegraph_lancelot/hostinfo.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/manual/scenegraph_lancelot/hostinfo.sh b/tests/manual/scenegraph_lancelot/hostinfo.sh index ac22ce8d22..7f486efb76 100644 --- a/tests/manual/scenegraph_lancelot/hostinfo.sh +++ b/tests/manual/scenegraph_lancelot/hostinfo.sh @@ -45,15 +45,14 @@ printProperty () # printEnvVar(): prints a key-value pair from given environment variable name. # key is printed as "Env_<varname>". -# If the variable is undefined, value is printed as UNDEFINED. +# If the variable is undefined, nothing is printed. # Arguments: $1: varname printEnvVar () { key=Env_$1 val=`eval 'echo $'$1` - [ -z "$val" ] && val='[undefined]' - echo $key: $val + [ -n "$val" ] && echo $key: $val } |