aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/util
diff options
context:
space:
mode:
Diffstat (limited to 'examples/data/scripts/util')
-rw-r--r--examples/data/scripts/util/dmenu.sh6
-rw-r--r--examples/data/scripts/util/editor.sh2
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/data/scripts/util/dmenu.sh b/examples/data/scripts/util/dmenu.sh
index 3f307f2..2326cea 100644
--- a/examples/data/scripts/util/dmenu.sh
+++ b/examples/data/scripts/util/dmenu.sh
@@ -40,12 +40,12 @@ case "$DMENU_SCHEME" in
esac
# Default arguments
-if [ "x$DMENU_ARGS" = "x" ]; then
+if [ -z "$DMENU_ARGS" ]; then
DMENU_ARGS="-i"
fi
# Set the prompt if wanted
-if [ ! "x$DMENU_PROMPT" = "x" ]; then
+if [ -n "$DMENU_PROMPT" ]; then
DMENU_ARGS="$DMENU_ARGS -p $DMENU_PROMPT"
fi
@@ -58,7 +58,7 @@ fi
# Detect the vertical patch
if dmenu --help 2>&1 | grep -q '\[-l lines\]'; then
# Default to 10 lines
- if [ "x$DMENU_LINES" = "x" ]; then
+ if [ -z "$DMENU_LINES" ]; then
DMENU_LINES=10
fi
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