From ea4162487e6abd8506648b196bc5573c357ff1bf Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 13 May 2015 12:40:54 -0300 Subject: Updates --- commit-updates | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'commit-updates') diff --git a/commit-updates b/commit-updates index 571cadd..698af4d 100755 --- a/commit-updates +++ b/commit-updates @@ -7,8 +7,12 @@ ARGS="$*" # Simply update commit -if [ ! -z "$1" ]; then - commit "Updates $*" +if git status &> /dev/null; then + if [ ! -z "$1" ]; then + commit "Updates $*" + else + commit "Updates $(basename `pwd`)" + fi else - commit "Updates $(basename `pwd`)" + mr commit -m "Updates" fi -- cgit v1.2.3