generated from me/template-mit
Add functions for pulling clones. Also add a dash to MASTER check.
This commit is contained in:
15
rc_shared.sh
15
rc_shared.sh
@@ -71,6 +71,8 @@ alias shared-reload="update-shared"
|
||||
# Shortcuts #
|
||||
|
||||
function send-master { send_master.sh; }
|
||||
function pull-clone { pull_clone.sh; }
|
||||
|
||||
function goodbye { update -y; bye; }
|
||||
|
||||
function clone {
|
||||
@@ -84,7 +86,7 @@ function today { date "+%Y%m%d"; }
|
||||
|
||||
function send-masters {
|
||||
echo -e "`date` - Looping through MASTER directories.\n"
|
||||
ls | grep MASTER | while read dir; do
|
||||
ls | grep '-MASTER' | while read dir; do
|
||||
echo -e "`date` - Found '$dir'..."
|
||||
cd $dir
|
||||
send-master
|
||||
@@ -93,6 +95,17 @@ function send-masters {
|
||||
echo -e "\n`date` - Done checking for MASTER directories."
|
||||
}
|
||||
|
||||
function pull-clones {
|
||||
echo -e "`date` - Looping through clone directories.\n"
|
||||
ls | grep '-clone' | while read dir; do
|
||||
echo -e "`date` - Found '$dir'..."
|
||||
cd $dir
|
||||
send-master
|
||||
cd ..
|
||||
done
|
||||
echo -e "\n`date` - Done checking for clone directories."
|
||||
}
|
||||
|
||||
# Audio #
|
||||
|
||||
# Video #
|
||||
|
||||
Reference in New Issue
Block a user