1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00

Linux: set colors conditionally in install script

This commit is contained in:
Helmut K. C. Tessarek 2024-01-23 17:14:14 +01:00
parent 72a8724a5b
commit 8b452106be
No known key found for this signature in database
GPG Key ID: BE0985349D44DD00

View File

@ -16,11 +16,14 @@ handleError() {
#-----------------------------------------------------
# Variables
#-----------------------------------------------------
# Only set colors, if tput available and TERM is recognized
if [[ `command -v tput` && `tput setaf 1 2>/dev/null` ]]; then
COLOR_RED=`tput setaf 1`
COLOR_GREEN=`tput setaf 2`
COLOR_YELLOW=`tput setaf 3`
COLOR_BLUE=`tput setaf 4`
COLOR_RESET=`tput sgr0`
fi
SILENT=false
ALLOW_ROOT=false
SHOW_CHANGELOG=false