You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
232 B

  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. }