From 9eca5e4ad6d0f329235b8a3dfa50b58fc4a42ec6 Mon Sep 17 00:00:00 2001 From: Neves-P Date: Fri, 8 Nov 2024 16:19:14 +0100 Subject: [PATCH] Fix test checking for ${install_prefix_dir} --- create_tarball.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_tarball.sh b/create_tarball.sh index ee70baaca1..a9861b465f 100755 --- a/create_tarball.sh +++ b/create_tarball.sh @@ -27,8 +27,8 @@ cvmfs_repo=${EESSI_CVMFS_REPO} install_prefix_dir=${eessi_version}${eessi_dev_project:+/$eessi_dev_project}/ echo "Setting Install prefix directory to: ${install_prefix_dir}" -if [ ! -d ${install_prefix_dir} ]; then - echo "Install prefix directory ${install_prefix_dir} does not exist?!" >&2 +if [ -z ${install_prefix_dir} ]; then + echo "\${install_prefix_dir} is empty?!" >&2 exit 2 fi