aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-09-13 15:59:15 +0000
committerBill Nottingham <notting@redhat.com>1999-09-13 15:59:15 +0000
commit0902be7aec7f0f871a3c40a9e4f1c1bb407d0932 (patch)
tree8942a8ea528cd477591e97e4b09af2ce930a332a
parent94f8aada63968b335a7657a24872c87a0be90f0e (diff)
downloadinitscripts-0902be7aec7f0f871a3c40a9e4f1c1bb407d0932.tar
initscripts-0902be7aec7f0f871a3c40a9e4f1c1bb407d0932.tar.gz
initscripts-0902be7aec7f0f871a3c40a9e4f1c1bb407d0932.tar.bz2
initscripts-0902be7aec7f0f871a3c40a9e4f1c1bb407d0932.tar.xz
initscripts-0902be7aec7f0f871a3c40a9e4f1c1bb407d0932.zip
get rid of which output
-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