From e6bc85e7615b14c40418000368f6e3c25d7111c0 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sun, 29 Mar 2026 16:58:36 -0700 Subject: [PATCH] Add functions for pulling clones. Also add a dash to MASTER check. --- rc_shared.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/rc_shared.sh b/rc_shared.sh index 845c05c..359aade 100644 --- a/rc_shared.sh +++ b/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 #