aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/util/editor.sh
diff options
context:
space:
mode:
authorGravatar Ben Boeckel <MathStuf@gmail.com>2010-08-21 12:02:11 -0400
committerGravatar Ben Boeckel <MathStuf@gmail.com>2010-10-02 11:56:29 -0400
commite0e443e5c5bbd7663542788401d0e44da91e301e (patch)
treee74e930ddac1eece035d9a9d2aa08d9fe28c9b97 /examples/data/scripts/util/editor.sh
parenta2901d469cacd317e8995486401f363bc569d37c (diff)
Use -z and -n tests rather than "x$foo" = "x" hack
Diffstat (limited to 'examples/data/scripts/util/editor.sh')
-rw-r--r--examples/data/scripts/util/editor.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/data/scripts/util/editor.sh b/examples/data/scripts/util/editor.sh
index a152ebd..1969769 100644
--- a/examples/data/scripts/util/editor.sh
+++ b/examples/data/scripts/util/editor.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# Editor selection
-if [ "x$VTERM" = "x" ]; then
+if [ -z "$VTERM" ]; then
VTERM="xterm"
fi