Skip to content

Commit

Permalink
stdlib.sh: remove dependency on tput (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Apr 17, 2022
1 parent 56826f8 commit aba32e8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions stdlib.sh
Expand Up @@ -152,10 +152,8 @@ log_status() {
# log_error "Unable to find specified directory!"

log_error() {
local color_normal
local color_error
color_normal=$(tput sgr0)
color_error=$(tput setaf 1)
local color_normal="\e[m"
local color_error="\e[38;5;1m"
if [[ -n $DIRENV_LOG_FORMAT ]]; then
local msg=$*
# shellcheck disable=SC2059,SC1117
Expand Down

0 comments on commit aba32e8

Please sign in to comment.