Skip to content

Commit bbc3959

Browse files
author
Damian Rouson
committed
Fix #559
The installation scripts now remove pre-existing build directories to avoid consistency/dependency issues that arise when overwriting build directories.
1 parent 97f350f commit bbc3959

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

prerequisites/build-functions/build_and_install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ build_and_install()
1616

1717
set_SUDO_if_needed_to_write_to_directory "${build_path}"
1818
set_SUDO_if_needed_to_write_to_directory "${install_path}"
19+
if [[ -d "${build_path}" ]]; then
20+
rm -rf "${build_path}"
21+
fi
1922
mkdir -p "${build_path}"
2023
info "pushd ${build_path}"
2124
pushd "${build_path}"

prerequisites/install-functions/build_opencoarrays.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ build_opencoarrays()
88
info "Invoking find_or_install cmake"
99
find_or_install cmake
1010
build_path="${build_path}"/opencoarrays/$("${opencoarrays_src_dir}"/install.sh -V opencoarrays)
11+
if [[ -d "${build_path}" ]]; then
12+
rm -rf "${build_path}"
13+
fi
1114
mkdir -p "$build_path"
1215
pushd "$build_path"
1316
if [[ -z ${MPIFC:-} || -z ${MPICC:-} ]]; then

0 commit comments

Comments
 (0)