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 #
|
# Shortcuts #
|
||||||
|
|
||||||
function send-master { send_master.sh; }
|
function send-master { send_master.sh; }
|
||||||
|
function pull-clone { pull_clone.sh; }
|
||||||
|
|
||||||
function goodbye { update -y; bye; }
|
function goodbye { update -y; bye; }
|
||||||
|
|
||||||
function clone {
|
function clone {
|
||||||
@@ -84,7 +86,7 @@ function today { date "+%Y%m%d"; }
|
|||||||
|
|
||||||
function send-masters {
|
function send-masters {
|
||||||
echo -e "`date` - Looping through MASTER directories.\n"
|
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'..."
|
echo -e "`date` - Found '$dir'..."
|
||||||
cd $dir
|
cd $dir
|
||||||
send-master
|
send-master
|
||||||
@@ -93,6 +95,17 @@ function send-masters {
|
|||||||
echo -e "\n`date` - Done checking for MASTER directories."
|
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 #
|
# Audio #
|
||||||
|
|
||||||
# Video #
|
# Video #
|
||||||
|
|||||||
Reference in New Issue
Block a user