Skip to content

fix issue #32 #33

Merged
merged 1 commit into from
Aug 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 11 additions & 7 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
@@ -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"
@@ -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
}