From 757a7da86942b130c0c631fed2fa1df956b7d7e3 Mon Sep 17 00:00:00 2001 From: Matthias Ruester Date: Thu, 19 Sep 2013 14:39:51 +0200 Subject: [PATCH] beesh: only append BEE_SOURCESUBDIR if set otherwise it will result in ${S} being .../source/ (trailing '/') which then results in calling .../source//configure --prefix=... --- src/beesh.sh.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/beesh.sh.in b/src/beesh.sh.in index 770eb34..fcc8876 100644 --- a/src/beesh.sh.in +++ b/src/beesh.sh.in @@ -1008,11 +1008,13 @@ if [ ! -d "${S}/${BEE_SOURCESUBDIR}" ] ; then exit 1 fi -if [ "${B}" = "${S}" ] ; then - B="${S}/${BEE_SOURCESUBDIR}" +if [ "${B}" = "${S}" -a -n "${BEE_SOURCESUBDIR}" ] ; then + B="${S}/${BEE_SOURCESUBDIR}" fi -S="${S}/${BEE_SOURCESUBDIR}" +if [ -n "${BEE_SOURCESUBDIR}" ]; then + S="${S}/${BEE_SOURCESUBDIR}" +fi print_info "changing to source directory: ${S}" cd ${S}