Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

husky.sh 600B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. if [ -z "$husky_skip_init" ]; then
  3. debug () {
  4. if [ "$HUSKY_DEBUG" = "1" ]; then
  5. echo "husky (debug) - $1"
  6. fi
  7. }
  8. readonly hook_name="$(basename "$0")"
  9. debug "starting $hook_name..."
  10. if [ "$HUSKY" = "0" ]; then
  11. debug "HUSKY env variable is set to 0, skipping hook"
  12. exit 0
  13. fi
  14. if [ -f ~/.huskyrc ]; then
  15. debug "sourcing ~/.huskyrc"
  16. . ~/.huskyrc
  17. fi
  18. export readonly husky_skip_init=1
  19. sh -e "$0" "$@"
  20. exitCode="$?"
  21. if [ $exitCode != 0 ]; then
  22. echo "husky - $hook_name hook exited with code $exitCode (error)"
  23. fi
  24. exit $exitCode
  25. fi