functions.sh 373 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. function progress {
  3. echo -en "\033[1;34m➔ "
  4. echo -en $*
  5. echo -en "\033[0m\n"
  6. }
  7. function info {
  8. echo -en "\033[1;36m"
  9. echo -en $*
  10. echo -en "\033[0m\n"
  11. }
  12. function success {
  13. echo -en "\033[1;32m ✔ "
  14. echo -en $*
  15. echo -en "\033[0m\n"
  16. }
  17. function abort {
  18. echo -en "\033[1;31m ✘ "
  19. echo -en $*
  20. echo -en "\033[0m\n"
  21. popd > /dev/null
  22. exit 99
  23. }