Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix issue #32
--no-archive-build now skips mkdir and [ -w ] on $BEE_BUILDARCHIVEDIR.
  • Loading branch information
wwwutz committed Aug 22, 2019
1 parent 81fdb63 commit 4f22eb0
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/beesh.sh.in
Expand Up @@ -163,7 +163,6 @@ function check_repositories() {

mkdir -pv "${BEE_BEEDIR}"
mkdir -pv "${BEE_PKGDIR}"
mkdir -pv "${BEE_BUILDARCHIVEDIR}"

if [ ! -w "${BEE_BEEDIR}" ] ; then
print_error " !! ${BEE_BEEDIR} not writable"
Expand All @@ -175,13 +174,18 @@ function check_repositories() {
r=1
fi

if [ ! -w "${BEE_BUILDARCHIVEDIR}" ] ; then
print_error " !! ${BEE_BUILDARCHIVEDIR} not writable"
r=1
fi
if [ "${OPT_ARCHIVE_BUILD}" == "yes" ] ; then

if [ "$r" != "0" ] ; then
exit 1
mkdir -pv "${BEE_BUILDARCHIVEDIR}"

if [ ! -w "${BEE_BUILDARCHIVEDIR}" ] ; then
print_error " !! ${BEE_BUILDARCHIVEDIR} not writable"
r=1
fi

if [ "$r" != "0" ] ; then
exit 1
fi
fi
}

Expand Down

0 comments on commit 4f22eb0

Please sign in to comment.