fix(update)r: on git error, sleep
This commit is contained in:
parent
55d28230cc
commit
9f5eeebc23
1 changed files with 4 additions and 1 deletions
|
@ -5,7 +5,10 @@ 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 break
|
||||
or begin
|
||||
sleep 60
|
||||
continue
|
||||
end
|
||||
set new_hash (git rev-parse HEAD)
|
||||
if test $old_hash != $new_hash
|
||||
set old_hash $new_hash
|
||||
|
|
Loading…
Reference in a new issue