From 816b1822d71776ee0d32bc012e95024ec52ac1fc Mon Sep 17 00:00:00 2001 From: Piotr Idzik <65706193+vil02@users.noreply.github.com> Date: Fri, 5 Jul 2024 10:01:32 +0200 Subject: [PATCH] Prevent globbing and word splitting --- scripts/create_install_path.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create_install_path.sh b/scripts/create_install_path.sh index 6c65831..7e35571 100755 --- a/scripts/create_install_path.sh +++ b/scripts/create_install_path.sh @@ -15,7 +15,7 @@ fi ABSOLUTE_INSTALL_PATH=$(realpath "${INSTALL_PATH}") echo "Absolute installation path is '${ABSOLUTE_INSTALL_PATH}'" -test -d ${INSTALL_PATH} +test -d "${INSTALL_PATH}" check_status "Installation path '${INSTALL_PATH}' is not a directory (absolute path is '${ABSOLUTE_INSTALL_PATH}')" test -r "${INSTALL_PATH}"