#!/usr/bin/env fish set gg /home/erock/dev/gitgen while true echo "waiting for event ..." set gitn $(ssh pipe sub git-drain) if test -n "$gitn" echo "received event $gitn" cd $gg && make "gen-$gitn" cd $gg && make "deploy-$gitn" else echo "could not connect to pipe, waiting 5s ..." sleep 5 end end