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:
parent
72a8724a5b
commit
8b452106be
@ -16,11 +16,14 @@ handleError() {
|
|||||||
#-----------------------------------------------------
|
#-----------------------------------------------------
|
||||||
# Variables
|
# Variables
|
||||||
#-----------------------------------------------------
|
#-----------------------------------------------------
|
||||||
COLOR_RED=`tput setaf 1`
|
# Only set colors, if tput available and TERM is recognized
|
||||||
COLOR_GREEN=`tput setaf 2`
|
if [[ `command -v tput` && `tput setaf 1 2>/dev/null` ]]; then
|
||||||
COLOR_YELLOW=`tput setaf 3`
|
COLOR_RED=`tput setaf 1`
|
||||||
COLOR_BLUE=`tput setaf 4`
|
COLOR_GREEN=`tput setaf 2`
|
||||||
COLOR_RESET=`tput sgr0`
|
COLOR_YELLOW=`tput setaf 3`
|
||||||
|
COLOR_BLUE=`tput setaf 4`
|
||||||
|
COLOR_RESET=`tput sgr0`
|
||||||
|
fi
|
||||||
SILENT=false
|
SILENT=false
|
||||||
ALLOW_ROOT=false
|
ALLOW_ROOT=false
|
||||||
SHOW_CHANGELOG=false
|
SHOW_CHANGELOG=false
|
||||||
|
Loading…
Reference in New Issue
Block a user