* usr/bin/ctail:

- use command -v to test for ccze existence
This commit is contained in:
Dustin Kirkland 2014-06-18 13:10:32 -05:00
commit 30ac9f70cd
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -15,6 +15,8 @@ byobu (5.81) unreleased; urgency=medium
- super handy, minimal way of awking out a particular column - super handy, minimal way of awking out a particular column
* usr/bin/Makefile.am, usr/share/man/man1/Makefile.am: * usr/bin/Makefile.am, usr/share/man/man1/Makefile.am:
- update automake files to install new utilities - update automake files to install new utilities
* usr/bin/ctail:
- use command -v to test for ccze existence
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 28 Apr 2014 09:36:59 -0700 -- Dustin Kirkland <kirkland@ubuntu.com> Mon, 28 Apr 2014 09:36:59 -0700

View file

@ -19,7 +19,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
if $BYOBU_TEST ccze -A >/dev/null 2>&1; then if command -v ccze >/dev/null 2>&1; then
tail -F $@ | ccze -A tail -F $@ | ccze -A
else else
echo "ERROR: ccze not found, hint..." 1>&2 echo "ERROR: ccze not found, hint..." 1>&2