From 1c259c4c02213d0f92daeb3136432ca40c5cd5f7 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 1 Jul 2016 14:26:42 +0200 Subject: [PATCH] beesh: avoid wrong diagnostic we may fail to find a free revision number (eg with versionless bee files) and if so, we want to avoid the error message of beeversion and a wrong "cp" hint. --- src/beesh.sh.in | 1 + 1 file changed, 1 insertion(+) diff --git a/src/beesh.sh.in b/src/beesh.sh.in index a579719..744fc64 100644 --- a/src/beesh.sh.in +++ b/src/beesh.sh.in @@ -157,6 +157,7 @@ function check_rebuild() { echo "${bf}" done | ${BEESORT} | tail -1) + test -n "${beefile_max}" || exit 1 eval $(${BEEVERSION} ${beefile_max}) print_warning "cp ${beefile} ${PWD}/${PKGFULLNAME}-${PKGFULLVERSION}-$((PKGREVISION + 1)).bee"