From 8a9f5866b6a9987f75623c075673fbff55e431ef Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Wed, 22 May 2024 21:00:38 +0200 Subject: [PATCH] make sure that base directory for tmp dir exists --- scripts/gpu_support/nvidia/install_cuda_and_libraries.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh b/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh index 0c4a296701..ba3416c6c5 100755 --- a/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh +++ b/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh @@ -93,6 +93,7 @@ export NESSI_SITE_INSTALL=${EESSI_SOFTWARE_PATH/versions/host_injections} if [[ -z "${TEMP_DIR}" ]]; then tmpdir=$(mktemp -d) else + mkdir -p ${TEMP_DIR} tmpdir=$(mktemp -d --tmpdir=${TEMP_DIR} cuda_n_co.XXX) if [[ ! -d "$tmpdir" ]] ; then fatal_error "Could not create directory ${tmpdir}"