~dricottone/huttese-apk

44a0d199a7ee249d97d9cf0e5bad9affbf1b00af — Drew DeVault 4 years ago bc082d3
print_pkgver: allow git describe to fail
1 files changed, 2 insertions(+), 0 deletions(-)

M pkgkit
M pkgkit => pkgkit +2 -0
@@ 155,11 155,13 @@ print_pkgver() {
	fi
	if [ -d .git ]
	then
		set +e
		pkgver=$(git describe --abbrev=0 2>/dev/null)
		if [ $? -ne 0 ]
		then
			pkgver=0
		fi
		set -e
		if ! git describe --exact-match HEAD >/dev/null 2>&1
		then
			cdate=$(git show -s -1 --format='%ci' HEAD)