| 1 | # vim: set ft=sh: ts=4: |
| 2 | # This is Alpine's replacement for gitstatus' install script that just executes |
| 3 | # gitstatusd installed in /usr/libexec. |
| 4 | |
| 5 | _gitstatus_install_main() { |
| 6 | local daemon=${GITSTATUS_DAEMON:-"/usr/libexec/gitstatusd"} |
| 7 | |
| 8 | while [ $# -gt 0 ]; do |
| 9 | case "$1" in |
| 10 | --) shift; break;; |
| 11 | *) shift;; |
| 12 | esac |
| 13 | done |
| 14 | |
| 15 | if [ $# -ne 0 ]; then |
| 16 | "$@" "$daemon" "$("$daemon" --version)" 0 |
| 17 | fi |
| 18 | } |
| 19 | |
| 20 | _gitstatus_install_main "$@" |