mirror of https://gitlab.com/ceda_ei/wish
Add EXIT_CODE_SMILEY_HIDE_ON_PASS
This commit is contained in:
parent
02c535506d
commit
f1b966c5e0
|
@ -11,11 +11,14 @@ function wish_exit_code_smiley_set_colors() {
|
|||
WISH_EXIT_CODE_SMILEY_BG=${WISH_EXIT_CODE_SMILEY_BG:-$WISH_DEFAULT_BG}
|
||||
WISH_EXIT_CODE_SMILEY_PASS=${WISH_EXIT_CODE_SMILEY_PASS:- :) }
|
||||
WISH_EXIT_CODE_SMILEY_FAIL=${WISH_EXIT_CODE_SMILEY_FAIL:- :( }
|
||||
WISH_EXIT_CODE_SMILEY_HIDE_ON_PASS=${WISH_EXIT_CODE_SMILEY_HIDE_ON_PASS:-0}
|
||||
}
|
||||
|
||||
function wish_exit_code_smiley_main() {
|
||||
if [[ $1 == 0 ]]; then
|
||||
wish_append $WISH_EXIT_CODE_SMILEY_BG $WISH_EXIT_CODE_SMILEY_FG "$WISH_EXIT_CODE_SMILEY_PASS"
|
||||
if [[ $WISH_EXIT_CODE_SMILEY_HIDE_ON_PASS == 0 ]]; then
|
||||
wish_append $WISH_EXIT_CODE_SMILEY_BG $WISH_EXIT_CODE_SMILEY_FG "$WISH_EXIT_CODE_SMILEY_PASS"
|
||||
fi
|
||||
else
|
||||
wish_append $WISH_EXIT_CODE_SMILEY_BG $WISH_EXIT_CODE_SMILEY_FG "$WISH_EXIT_CODE_SMILEY_FAIL"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue