about summary refs log tree commit diff
path: root/xbump
diff options
context:
space:
mode:
Diffstat (limited to 'xbump')
-rwxr-xr-xxbump1
1 files changed, 1 insertions, 0 deletions
diff --git a/xbump b/xbump
index df30d9f..8055452 100755
--- a/xbump
+++ b/xbump
@@ -4,6 +4,7 @@
 cd $(xdistdir)
 
 pkg=$1; shift
+[ -z "$pkg" ] && pkg=`basename $PWD`
 version=$(./xbps-src show "$pkg" | sed -n '/^version/s/[^:]*:[\t]*//p')
 
 if [ -n "$(git ls-files srcpkgs/"$pkg"/template)" ]; then