generated from me/template-mit
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f8074d56b | ||
|
|
e6bc85e761 |
No files matched your search
@@ -14,7 +14,7 @@ dir="`basename $DIR`"
|
||||
|
||||
## Validations ##
|
||||
|
||||
if [[ "$DIR" != *"MASTER" ]]; then
|
||||
if [[ "$DIR" != *"-MASTER" ]]; then
|
||||
echo "'$DIR' is not labeled as a MASTER. Skipping upload."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
+14
-1
@@ -71,6 +71,8 @@ alias shared-reload="update-shared"
|
||||
# Shortcuts #
|
||||
|
||||
function send-master { send_master.sh; }
|
||||
function pull-clone { pull_clone.sh; }
|
||||
|
||||
function goodbye { update -y; bye; }
|
||||
|
||||
function clone {
|
||||
@@ -84,7 +86,7 @@ function today { date "+%Y%m%d"; }
|
||||
|
||||
function send-masters {
|
||||
echo -e "`date` - Looping through MASTER directories.\n"
|
||||
ls | grep MASTER | while read dir; do
|
||||
ls | grep '-MASTER' | while read dir; do
|
||||
echo -e "`date` - Found '$dir'..."
|
||||
cd $dir
|
||||
send-master
|
||||
@@ -93,6 +95,17 @@ function send-masters {
|
||||
echo -e "\n`date` - Done checking for MASTER directories."
|
||||
}
|
||||
|
||||
function pull-clones {
|
||||
echo -e "`date` - Looping through clone directories.\n"
|
||||
ls | grep '-clone' | while read dir; do
|
||||
echo -e "`date` - Found '$dir'..."
|
||||
cd $dir
|
||||
send-master
|
||||
cd ..
|
||||
done
|
||||
echo -e "\n`date` - Done checking for clone directories."
|
||||
}
|
||||
|
||||
# Audio #
|
||||
|
||||
# Video #
|
||||
|
||||
Reference in new issue
Block a user