#!/bin/bash # # Commit both on git and svn # # Parameters ARGS="$*" # Simply update commit if git status &> /dev/null; then if [ ! -z "$1" ]; then commit "Updates $*" else commit "Updates $(basename `pwd`)" fi else mr commit -m "Updates" fi