aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-28 15:47:46 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-28 15:47:46 +0200
commit8b6d11f191a0336a47aea1f13c9af48ac17864e3 (patch)
treeec4c7740a4ee914a7679786b67b5097d373f8771
parent0b3dfa14a17831333aad9cc02f8e37398bff739c (diff)
downloadxutil-8b6d11f191a0336a47aea1f13c9af48ac17864e3.tar.gz
xtopen: Don't print output of which
-rwxr-xr-xxtopen2
1 files changed, 1 insertions, 1 deletions
diff --git a/xtopen b/xtopen
index 83bca60..7774377 100755
--- a/xtopen
+++ b/xtopen
@@ -31,7 +31,7 @@ while getopts kK o; do
done
shift $((OPTIND-1))
-if ! which "$1" 2>/dev/null; then
+if ! which "$1" >/dev/null; then
xmessage -default okay -nearmouse \
error: "program $1 not found"
exit 1