diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2011-11-19 14:08:18 +0000 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2011-11-19 14:08:18 +0000 |
commit | 0ffcc00b1515fd109dbb95a750d7ada68679b04b (patch) | |
tree | 5fdb628e08350488c7f9713b9ac1d65033685f17 /i3-sensible-terminal | |
parent | b6e859787e2f4c392c8fa92e4458b5d784570640 (diff) | |
download | i3-0ffcc00b1515fd109dbb95a750d7ada68679b04b.tar.gz i3-0ffcc00b1515fd109dbb95a750d7ada68679b04b.zip |
i3-sensible-terminal: check $TERMINAL to not call 'which' without parameters (Thanks Fandekasp)
Diffstat (limited to 'i3-sensible-terminal')
-rwxr-xr-x | i3-sensible-terminal | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i3-sensible-terminal b/i3-sensible-terminal index 28e60623..e5bf2718 100755 --- a/i3-sensible-terminal +++ b/i3-sensible-terminal @@ -6,7 +6,7 @@ # distribution-specific mechanism to find the preferred terminal emulator. On # Debian, there is the x-terminal-emulator symlink for example. # Please don't touch the first line, though: -which $TERMINAL >/dev/null && exec $TERMINAL "$@" +[ -n "$TERMINAL" ] && which $TERMINAL >/dev/null && exec $TERMINAL "$@" # Hopefully one of these is installed: which xterm >/dev/null && exec xterm "$@" |