svn commit: r243892 - head/usr.sbin/mergemaster
Eitan Adler
eadler at FreeBSD.org
Wed Dec 5 13:56:37 UTC 2012
Author: eadler
Date: Wed Dec 5 13:56:36 2012
New Revision: 243892
URL: http://svnweb.freebsd.org/changeset/base/243892
Log:
Remove pointless check for the existence of /usr/bin/less which exists
in all configurations.
Reviewed by: mjg
Approved by: cperciva
MFC after: 2 weeks
Modified:
head/usr.sbin/mergemaster/mergemaster.sh
Modified: head/usr.sbin/mergemaster/mergemaster.sh
==============================================================================
--- head/usr.sbin/mergemaster/mergemaster.sh Wed Dec 5 13:56:32 2012 (r243891)
+++ head/usr.sbin/mergemaster/mergemaster.sh Wed Dec 5 13:56:36 2012 (r243892)
@@ -421,9 +421,7 @@ check_pager () {
echo " I cannot execute it. So, what would you like to do?"
echo ''
echo " Use 'e' to exit mergemaster and fix your PAGER variable"
- if [ -x /usr/bin/less -o -x /usr/local/bin/less ]; then
echo " Use 'l' to set PAGER to 'less' for this run"
- fi
echo " Use 'm' to use plain old 'more' as your PAGER for this run"
echo ''
echo " or you may type an absolute path to PAGER for this run"
@@ -438,17 +436,7 @@ check_pager () {
exit 0
;;
[lL])
- if [ -x /usr/bin/less ]; then
- PAGER=/usr/bin/less
- elif [ -x /usr/local/bin/less ]; then
- PAGER=/usr/local/bin/less
- else
- echo ''
- echo " *** Fatal Error:"
- echo " You asked to use 'less' as your pager, but I can't"
- echo " find it in /usr/bin or /usr/local/bin"
- exit 1
- fi
+ PAGER=less
;;
[mM]|'')
PAGER=more
More information about the svn-src-all
mailing list