ci_helpers.sh 232 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. color_out() {
  3. printf "\e[0;$1m$PKG_NAME: %s\e[0;0m\n" "$2"
  4. }
  5. success() {
  6. color_out 32 "$1"
  7. }
  8. info() {
  9. color_out 36 "$1"
  10. }
  11. err() {
  12. color_out 31 "$1"
  13. }
  14. warn() {
  15. color_out 33 "$1"
  16. }
  17. err_die() {
  18. err "$1"
  19. exit 1
  20. }