Skip to content

Commit

Permalink
beesh: only append BEE_SOURCESUBDIR if set
Browse files Browse the repository at this point in the history
otherwise it will result in ${S} being .../source/
(trailing '/')

which then results in calling .../source//configure --prefix=...
  • Loading branch information
Matthias Ruester authored and mariux committed Jun 1, 2015
1 parent df6bacd commit 757a7da
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 757a7da

Please sign in to comment.