summaryrefslogtreecommitdiff
path: root/watch.sh
diff options
context:
space:
mode:
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