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
|
# - 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
@@ -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