aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprefdm2
1 files changed, 1 insertions, 1 deletions
diff --git a/prefdm b/prefdm
index 0b2d8582..c14e4db5 100755
--- a/prefdm
+++ b/prefdm
@@ -22,7 +22,7 @@ if [ -z "$preferred" ]; then
preferred=xdm
fi
fi
-if [ -n "$preferred" ] && which $preferred ; then
+if [ -n "$preferred" ] && which $preferred >/dev/null 2>&1; then
exec `which $preferred` $*
fi
exit 1