Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #33 from mariux64/fix-check-buildarchive-permission
fix issue #32
  • Loading branch information
donald committed Aug 22, 2019
2 parents 81fdb63 + 4f22eb0 commit c9ebf53
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 c9ebf53

Please sign in to comment.