From efac734dd8d6d8deefbd584291918bfca2387584 Mon Sep 17 00:00:00 2001 From: David Hoese Date: Mon, 27 Nov 2023 10:09:01 -0600 Subject: [PATCH] Fix typo in etc directory handling in bundle creation --- create_conda_software_bundle.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/create_conda_software_bundle.sh b/create_conda_software_bundle.sh index 977ec09d..d9f8e94c 100755 --- a/create_conda_software_bundle.sh +++ b/create_conda_software_bundle.sh @@ -78,7 +78,11 @@ cd "${SB_NAME}" mkdir -p bin || oops "Couldn't make 'bin' directory" mkdir -p etc || oops "Couldn't make 'etc' directory" # expand glob pattern -P2G_ETC_DIR=$(echo libexec/python_runtime/lib/python*/site-package/polar2grid/etc) +P2G_ETC_DIR=$(echo libexec/python_runtime/lib/python?.??/site-packages/polar2grid/etc) +if [ ! -d "${P2G_ETC_DIR}" ]; then + oops "Couldn't find polar2grid etc directory" +fi +echo "Package etc directory found at: ${P2G_ETC_DIR}" ln -s ../${P2G_ETC_DIR} etc/polar2grid || oops "Couldn't link to package etc directory" ln -s etc/polar2grid/colormaps . || oops "Couldn't create softlink for colormaps directory" cp -P ${BUNDLE_SCRIPTS_DIR}/*.sh ${BUNDLE_SCRIPTS_DIR}/*.txt bin/ || echo "Couldn't copy scripts to bin/ directory"