summaryrefslogtreecommitdiff
path: root/push.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-19 13:16:00 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-19 13:16:00 +0300
commit2f9d1b7ab3355ed90c557c4a075ea4fd16f4116c (patch)
tree6a57b066a1000d6c798be5b04eec7aa1d2945024 /push.sh
parentfbe9abd71922c064d14d5f193ecb79f367c83ec6 (diff)
downloadall-2f9d1b7ab3355ed90c557c4a075ea4fd16f4116c.tar.gz
all-2f9d1b7ab3355ed90c557c4a075ea4fd16f4116c.tar.bz2
all-2f9d1b7ab3355ed90c557c4a075ea4fd16f4116c.tar.xz
all-2f9d1b7ab3355ed90c557c4a075ea4fd16f4116c.zip
Add parameters support in push.sh script.
Diffstat (limited to 'push.sh')
-rwxr-xr-xpush.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/push.sh b/push.sh
index e9c8c84..ac2032a 100755
--- a/push.sh
+++ b/push.sh
@@ -9,11 +9,12 @@ function status {
STR=$(git status|grep "Your branch is ahead")
if [[ -n "${STR}" ]]; then
echo "Pushing $2"
- git push
+ git push $CMD
fi
cd "$DIR"
}
+CMD="$*"
status . evol-all
status client-data client-data
status server-code server-code