From 66cc87ca28f7325f5df2fd264127a3f5217b304c Mon Sep 17 00:00:00 2001 From: hyang Date: Sun, 10 Sep 2023 15:51:01 -0700 Subject: rework docker --- watch.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'watch.sh') diff --git a/watch.sh b/watch.sh index ddf88f9..aeb2b75 100755 --- a/watch.sh +++ b/watch.sh @@ -1,7 +1,8 @@ #!/bin/sh while true; do - git fetch && git reset --hard origin - sleep 60 + (git fetch && git reset --hard origin) || git clone "$REPO" . && git submodule update --init + git submodule update --remote + sleep 300 done -- cgit v1.2.3