aboutsummaryrefslogtreecommitdiff
path: root/commit-updates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-03-18 13:38:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-03-18 13:38:41 -0300
commit3bcb0937cb1b053f97e88f3a03588b18ba237c7f (patch)
tree91e5542c5d4093ac248a04f498fd741fbc0c62ab /commit-updates
parentb02ec21fdd426b2d3475fea2873a8965ff49224e (diff)
downloadutils-git-3bcb0937cb1b053f97e88f3a03588b18ba237c7f.tar.gz
utils-git-3bcb0937cb1b053f97e88f3a03588b18ba237c7f.tar.bz2
No argument support for commit-updates
Diffstat (limited to 'commit-updates')
-rwxr-xr-xcommit-updates6
1 files changed, 5 insertions, 1 deletions
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