X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=git-mirror;h=6d3f00cad6a7e6810d7b72deefd9834796909630;hb=8aa894d3c9ae84fd7097e1a9f43d970d2c5290b2;hp=d9864184162c3bdfc624ffa8ea009162c736aa37;hpb=9bc2306b4d73d34e8049ecbd18580c634e2f96ea;p=bin.git diff --git a/git-mirror b/git-mirror index d986418..6d3f00c 100755 --- a/git-mirror +++ b/git-mirror @@ -4,6 +4,7 @@ usage() { echo 'Usage: git-mirror [command] [arguments] git-mirror run [path to repos] [path to log file] [html directory] + optional: [sleep duration] git-mirror gen-url [path to repo] -- generate url file in repo git-mirror help -- show this message @@ -40,7 +41,7 @@ run() { echo $(date -Iseconds) ' | ' ${dir} | tee -a ${2} echo $(tail -n 1500 ${2}) > ${2} done - sleep 600 + sleep ${4:-600} done }