Compare commits

...
2 Commits
2 changed files with 15 additions and 3 deletions

No files matched your search

+1
View File
@@ -4,6 +4,7 @@
# - ensure all SERVER_* variables actually exist in environment # - ensure all SERVER_* variables actually exist in environment
# - test the script :) # - test the script :)
# - add parameter to set loop=true # - add parameter to set loop=true
# - allow passing the script a variable for the dir, rather than assuming curr
## Variables ## ## Variables ##
+14 -3
View File
@@ -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