status/proto/updater
2024-06-24 00:52:17 +00:00

20 lines
382 B
Fish
Executable file

#!/usr/bin/fish
cd (dirname (status -f))/..
set -l old_hash (git rev-parse HEAD)
while true
git pull 2>&1 1>/tmp/status-updater-git-output
or begin
sleep 60
continue
end
set new_hash (git rev-parse HEAD)
if test $old_hash != $new_hash
set old_hash $new_hash
cat /tmp/status-updater-git-output
proto/deploy
end
sleep 60
end