mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 14:15:19 -04:00
make_cp2k.sh: Avoid expanding unset SPACK_ENV (#5506)
This commit is contained in:
parent
14b73dafd1
commit
17c8f72c4c
1 changed files with 1 additions and 3 deletions
|
|
@ -1171,9 +1171,7 @@ if [[ ! -f "${SPACK_BUILD_PATH}/BUILD_DEPENDENCIES_COMPLETED" ]]; then
|
|||
|
||||
# Create CP2K environment if needed
|
||||
if spack env list | grep -q "${CP2K_ENV}"; then
|
||||
if [[ -n "${SPACK_ENV}" ]]; then
|
||||
echo "The Spack environment \"${CP2K_ENV}\" exists already"
|
||||
fi
|
||||
echo "The Spack environment \"${CP2K_ENV}\" exists already"
|
||||
else
|
||||
cat "${CP2K_CONFIG_FILE}"
|
||||
echo "The Spack environment \"${CP2K_ENV}\" does NOT exist"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue