From 96990f5ccafc670f0d72cc0a93bc17d2d746de9f Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Tue, 30 Aug 2016 21:36:11 +0100 Subject: [PATCH 2/2] Use absolute path to consoletype as /sbin is not in user PATH --- functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index 9d47e6c..da127c3 100644 --- a/functions.sh +++ b/functions.sh @@ -421,7 +421,7 @@ RC_DOT_PATTERN='' # have a TTY. rc unsets it at the end of running so it shouldn't hang # around if [ -z "${CONSOLETYPE}" ] ; then - CONSOLETYPE="$(! consoletype stdout 2>/dev/null)"; export CONSOLETYPE + CONSOLETYPE="$(! /sbin/consoletype stdout 2>/dev/null)"; export CONSOLETYPE fi if [ "${CONSOLETYPE}" = "serial" ] ; then RC_NOCOLOR="yes" -- 2.8.2