Fork of FusionPBX but with LDAP kinda working
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.

25 lines
438 B

  1. #!/bin/sh
  2. verbose () {
  3. echo "${green}$1${normal}"
  4. }
  5. error () {
  6. echo "${red}$1${normal}"
  7. }
  8. warning () {
  9. echo "${yellow}$1${normal}"
  10. }
  11. # check for color support
  12. if test -t 1; then
  13. # see if it supports colors...
  14. ncolors=$(tput colors)
  15. if test -n "$ncolors" && test $ncolors -ge 8; then
  16. normal="$(tput sgr0)"
  17. red="$(tput setaf 1)"
  18. green="$(tput setaf 2)"
  19. yellow="$(tput setaf 3)"
  20. fi
  21. fi