Skip to content

Commit

Permalink
Hide error message if pager not available
Browse files Browse the repository at this point in the history
Currently, there will be a message "which: no pager in (/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin)" if pager is not available. This commit hides this message.
  • Loading branch information
sprankest committed Feb 21, 2013
1 parent 05f0b4a commit ac1dbaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modman
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ darwin_stat ()
*) echo unknown_type;;
esac
}
pager=${PAGER:-$(which pager)}
pager=${PAGER:-$(which pager &> /dev/null)}
if [ -n $pager ]; then
pager=less
fi
Expand Down

0 comments on commit ac1dbaa

Please sign in to comment.