generated from me/template-mit
Compare commits
2 Commits
074f0a29bf
...
186519fb0e
| Author | SHA1 | Date | |
|---|---|---|---|
| 186519fb0e | |||
| 7fa1430b34 |
10
rc_shared.sh
10
rc_shared.sh
@@ -99,6 +99,9 @@ function clone {
|
||||
function now { date "+%Y%m%d-%H%M%S"; }
|
||||
function today { date "+%Y%m%d"; }
|
||||
|
||||
function log { echo -e "$1"; }
|
||||
function blog { echo -e "\n\n$1\n\n"; }
|
||||
|
||||
# Enhance Bin Scripts #
|
||||
|
||||
# MASTER and CLONE folders.
|
||||
@@ -141,6 +144,13 @@ function sync-all {
|
||||
|
||||
echo -e "`date` - \nDone."
|
||||
}
|
||||
function sync-all-loop {
|
||||
while true; do
|
||||
sync-all
|
||||
echo -e "\n\n*** Sleeping... ***\n\n"
|
||||
sleep 30
|
||||
done
|
||||
}
|
||||
|
||||
# SYNC folders.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user