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
echo $(date -Iseconds) ' | ' ${dir} | tee -a ${2}
echo $(tail -n 1500 ${2}) > ${2}
done
- sleep 600
+ sleep ${4:-600}
done
}