Skip to content

Commit

Permalink
Update script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pforret authored Sep 19, 2023
1 parent 0392dba commit dd0f7a0
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions template/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,24 @@ verbose=0
quiet=0
[[ $# -gt 0 ]] && [[ $1 == "-q" ]] && quiet=1

txtReset=""
txtError=""
txtInfo=""
txtInfo=""
txtWarn=""
txtBold=""
txtItalic=""
txtUnderline=""

char_succes="OK "
char_fail="!! "
char_alert="?? "
char_wait="..."
info_icon="(i)"
config_icon="[c]"
clean_icon="[c]"
require_icon="[r]"

### stdIO:print/stderr output
function IO:initialize() {
script_started_at="$(Tool:time)"
Expand All @@ -157,15 +175,6 @@ function IO:initialize() {
txtBold=$(tput bold)
txtItalic=$(tput sitm)
txtUnderline=$(tput smul)
else
txtReset=""
txtError=""
txtInfo=""
txtInfo=""
txtWarn=""
txtBold=""
txtItalic=""
txtUnderline=""
fi

[[ $(echo -e '\xe2\x82\xac') == '' ]] && unicode=1 || unicode=0 # detect if unicode is supported
Expand All @@ -178,15 +187,6 @@ function IO:initialize() {
config_icon="🌱"
clean_icon="🧽"
require_icon="🔌"
else
char_succes="OK "
char_fail="!! "
char_alert="?? "
char_wait="..."
info_icon="(i)"
config_icon="[c]"
clean_icon="[c]"
require_icon="[r]"
fi
error_prefix="${txtError}>${txtReset}"
}
Expand Down

0 comments on commit dd0f7a0

Please sign in to comment.