summaryrefslogtreecommitdiff
path: root/watch.sh
diff options
context:
space:
mode:
authorhyang <hyang@hyang.xyz>2023-09-10 15:51:01 -0700
committerhyang <hyang@hyang.xyz>2023-09-10 15:51:01 -0700
commit66cc87ca28f7325f5df2fd264127a3f5217b304c (patch)
treef58e5ea8afcf7a323a69fbddeaba802f6d16629d /watch.sh
parentd4309c6d1ade94c673c0cbfc56bf8bfb99157eda (diff)
rework docker
Diffstat (limited to 'watch.sh')
-rwxr-xr-xwatch.sh5
1 files changed, 3 insertions, 2 deletions
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