generated from me/template-mit
Compare commits
2
Commits
9f6c7834d8
...
9c9de6f96f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c9de6f96f | ||
|
|
c5d1386211 |
No files matched your search
@@ -4,6 +4,7 @@
|
||||
# - ensure all SERVER_* variables actually exist in environment
|
||||
# - test the script :)
|
||||
# - add parameter to set loop=true
|
||||
# - allow passing the script a variable for the dir, rather than assuming curr
|
||||
|
||||
## Variables ##
|
||||
|
||||
|
||||
+14
-3
@@ -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