Feature to disable output colors

This commit is contained in:
JRGTH
2021-07-13 04:49:25 -04:00
parent b1258378ab
commit 50c09d0359
5 changed files with 21 additions and 4 deletions

View File

@@ -28,7 +28,21 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
. /usr/local/share/bastille/colors.pre.sh
. /usr/local/etc/bastille/bastille.conf
# Load text output colors if enabled in config
# else reset colors variables used by bastille
case "${bastille_colors_enable}" in
[Yy][Ee][Ss])
. /usr/local/share/bastille/colors.pre.sh
;;
*)
COLOR_RED=
COLOR_GREEN=
COLOR_YELLOW=
COLOR_RESET=
;;
esac
# Notify message on error, but do not exit
error_notify() {