2023-10-01 01:27:55 +00:00
|
|
|
#!/usr/bin/fish
|
|
|
|
|
|
|
|
cd (dirname (status -f))/..
|
|
|
|
|
|
|
|
set -l old_hash (git rev-parse HEAD)
|
|
|
|
while true
|
2023-10-01 08:41:44 +00:00
|
|
|
git pull 2>&1 1>/tmp/status-updater-git-output
|
2023-10-01 01:27:55 +00:00
|
|
|
or break
|
|
|
|
set new_hash (git rev-parse HEAD)
|
|
|
|
if test $old_hash != $new_hash
|
|
|
|
set old_hash $new_hash
|
2023-10-01 08:41:44 +00:00
|
|
|
|
|
|
|
cat /tmp/status-updater-git-output
|
2023-10-01 01:27:55 +00:00
|
|
|
proto/deploy
|
|
|
|
end
|
|
|
|
sleep 60
|
|
|
|
end
|