diff options
Diffstat (limited to 'done')
-rwxr-xr-x | done | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +#!/bin/bash +# +# Submit updates to a project. +# + +# Parameters +PROJECT="$1" + +# Try to get there +if [ ! -z "$PROJECT" ]; then + cd $PROJECT &> /dev/null || exit 1 +fi + +# Sync +if git status &> /dev/null; then + if which updates > /dev/null; then + updates + else + git commit -a -m "Updates $PROJECT" + git push + fi + + git fetch --all +fi |