diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2010-08-21 12:02:11 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2010-10-02 11:56:29 -0400 |
commit | e0e443e5c5bbd7663542788401d0e44da91e301e (patch) | |
tree | e74e930ddac1eece035d9a9d2aa08d9fe28c9b97 /examples/data/scripts/load_url_from_bookmarks.sh | |
parent | a2901d469cacd317e8995486401f363bc569d37c (diff) |
Use -z and -n tests rather than "x$foo" = "x" hack
Diffstat (limited to 'examples/data/scripts/load_url_from_bookmarks.sh')
-rwxr-xr-x | examples/data/scripts/load_url_from_bookmarks.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/data/scripts/load_url_from_bookmarks.sh b/examples/data/scripts/load_url_from_bookmarks.sh index d5f7bd6..7613624 100755 --- a/examples/data/scripts/load_url_from_bookmarks.sh +++ b/examples/data/scripts/load_url_from_bookmarks.sh @@ -8,7 +8,7 @@ source $UZBL_UTIL_DIR/uzbl-dir.sh [ -r "$UZBL_BOOKMARKS_FILE" ] || exit 1 -if [ "x$DMENU_HAS_VERTICAL" = "x" ]; then +if [ -z "$DMENU_HAS_VERTICAL" ]; then # because they are all after each other, just show the url, not their tags. goto=$(awk '{print $1}' $UZBL_BOOKMARKS_FILE | $DMENU) else |