diff options
Diffstat (limited to 'xbump')
-rwxr-xr-x | xbump | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xbump b/xbump index 865d5d0..8276fb2 100755 --- a/xbump +++ b/xbump @@ -7,6 +7,11 @@ pkg=$1; shift [ -z "$pkg" ] && pkg=$(basename $PWD) version=$(./xbps-src show "$pkg" | sed -n '/^version/s/[^:]*:[\t]*//p') +if [ -z "$version" ]; then + echo cannot parse version + exit 1 +fi + if [ -n "$(git ls-files srcpkgs/"$pkg"/template)" ]; then msg="$pkg: update to $version." else |