diff options
Diffstat (limited to 'community/gitstatus/install')
-rw-r--r-- | community/gitstatus/install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/community/gitstatus/install b/community/gitstatus/install new file mode 100644 index 00000000000..344d4e40f62 --- /dev/null +++ b/community/gitstatus/install @@ -0,0 +1,20 @@ +# vim: set ft=sh: ts=4: +# This is Alpine's replacement for gitstatus' install script that just executes +# gitstatusd installed in /usr/libexec. + +_gitstatus_install_main() { + local daemon=${GITSTATUS_DAEMON:-"/usr/libexec/gitstatusd"} + + while [ $# -gt 0 ]; do + case "$1" in + --) shift; break;; + *) shift;; + esac + done + + if [ $# -ne 0 ]; then + "$@" "$daemon" "$("$daemon" --version)" 0 + fi +} + +_gitstatus_install_main "$@" |