From: Silvio Rhatto Date: Wed, 18 Mar 2015 16:38:41 +0000 (-0300) Subject: No argument support for commit-updates X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3bcb0937cb1b053f97e88f3a03588b18ba237c7f;p=utils-git.git No argument support for commit-updates --- diff --git a/commit-updates b/commit-updates index 8292c80..571cadd 100755 --- a/commit-updates +++ b/commit-updates @@ -7,4 +7,8 @@ ARGS="$*" # Simply update commit -commit "Updates $*" +if [ ! -z "$1" ]; then + commit "Updates $*" +else + commit "Updates $(basename `pwd`)" +fi