generated from me/template-mit
Add function which syncs all the MASTER catalogs in the current directory.
This commit is contained in:
17
rc_shared.sh
17
rc_shared.sh
@@ -12,13 +12,11 @@ export PATH="$PATH:~/bin-shared:~/.bin-shared"
|
||||
|
||||
## Aliases ##
|
||||
|
||||
# Bin Scripts
|
||||
alias send-master="send_master.sh"
|
||||
|
||||
|
||||
## Functions ##
|
||||
|
||||
# Related specifically to this project.
|
||||
|
||||
function update-shared {
|
||||
branch="$1"
|
||||
if [[ -z "$branch" ]]; then
|
||||
@@ -41,6 +39,19 @@ alias shared-reload="update-shared"
|
||||
|
||||
# Shortcuts
|
||||
|
||||
function send-master { send_master.sh; }
|
||||
|
||||
# Enhance Bin Scripts
|
||||
|
||||
function send-masters {
|
||||
ls | grep MASTER | while read dir; do
|
||||
echo "Preparing to sync '$dir' to '$SERVER_NAME'."
|
||||
cd $dir
|
||||
send-master
|
||||
cd ..
|
||||
done
|
||||
}
|
||||
|
||||
# Audio
|
||||
|
||||
# Video
|
||||
|
||||
Reference in New Issue
Block a user