Commit b32309a5 authored by one's avatar one
Browse files

Remove old installations directly

parent 1dcf055e
......@@ -82,13 +82,8 @@ exit_with_error() {
# Clone and build OpenMPI+UCX in /opt
install_openmpi() {
# Backup old installations if they exist (overwrite existing .bak if present)
[ -d "${ompi_prefix}" ] && {
rm -rf "${ompi_prefix}.bak"; mv "${ompi_prefix}" "${ompi_prefix}.bak";
}
[ -d "${ucx_prefix}" ] && {
rm -rf "${ucx_prefix}.bak"; mv "${ucx_prefix}" "${ucx_prefix}.bak";
}
# Remove old installations if they exist
rm -rf "${ompi_prefix}" "${ucx_prefix}"
# OpenMPI and UCX install to one of these locations depending on OS
local ucx_lib_folder="${ucx_prefix}/lib"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment