mirror of
https://github.com/kevinnlsamuel/bak-old.git
synced 2025-12-06 10:05:58 +05:30
added text formatting sequences
knocking out the tput dependency
This commit is contained in:
@@ -18,6 +18,13 @@ debug(){ ### function to call when $DEBUG is set
|
|||||||
set -xv
|
set -xv
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# text formatting escape sequences
|
||||||
|
txt_bold='\e[1m'
|
||||||
|
txt_red='\e[31m'
|
||||||
|
txt_green='\e[32m'
|
||||||
|
txt_yellow='\e[33m'
|
||||||
|
txt_0='\e[0m'
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# f() FOR PRINTING PROMPTS
|
# f() FOR PRINTING PROMPTS
|
||||||
#############################
|
#############################
|
||||||
|
|||||||
@@ -36,6 +36,13 @@ is_command(){ ### function to check if a command exists
|
|||||||
{ command -v $1;} >/dev/null && return 0 || return 1
|
{ command -v $1;} >/dev/null && return 0 || return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# text formatting escape sequences
|
||||||
|
txt_bold='\e[1m'
|
||||||
|
txt_red='\e[31m'
|
||||||
|
txt_green='\e[32m'
|
||||||
|
txt_yellow='\e[33m'
|
||||||
|
txt_0='\e[0m'
|
||||||
|
|
||||||
err_no_downloader(){
|
err_no_downloader(){
|
||||||
cat <<- EOM
|
cat <<- EOM
|
||||||
$(tput setaf 1; tput bold)ERR: missing dependencies$(tput sgr0)
|
$(tput setaf 1; tput bold)ERR: missing dependencies$(tput sgr0)
|
||||||
|
|||||||
Reference in New Issue
Block a user