generated from me/template-mit
Move log functions to shared,
This commit is contained in:
14
rc_shared.sh
14
rc_shared.sh
@@ -99,6 +99,13 @@ 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 +148,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