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 ##
|
## Aliases ##
|
||||||
|
|
||||||
# Bin Scripts
|
|
||||||
alias send-master="send_master.sh"
|
|
||||||
|
|
||||||
|
|
||||||
## Functions ##
|
## Functions ##
|
||||||
|
|
||||||
# Related specifically to this project.
|
# Related specifically to this project.
|
||||||
|
|
||||||
function update-shared {
|
function update-shared {
|
||||||
branch="$1"
|
branch="$1"
|
||||||
if [[ -z "$branch" ]]; then
|
if [[ -z "$branch" ]]; then
|
||||||
@@ -41,6 +39,19 @@ alias shared-reload="update-shared"
|
|||||||
|
|
||||||
# Shortcuts
|
# 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
|
# Audio
|
||||||
|
|
||||||
# Video
|
# Video
|
||||||
|
|||||||
Reference in New Issue
Block a user