From f9b05a6c4443722ed866ed7195a6f273fcce779a Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 12 Apr 2021 17:24:00 +0200 Subject: [PATCH] [fix] utils/searx.sh - Double quote to prevent globbing Fix issues reported by `make test.sh` Signed-off-by: Markus Heiser --- utils/searx.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/searx.sh b/utils/searx.sh index d2dbe79b6..578438698 100755 --- a/utils/searx.sh +++ b/utils/searx.sh @@ -418,9 +418,9 @@ install_settings() { err_msg "you have to install searx first" exit 42 fi - mkdir -p "$(dirname ${SEARX_SETTINGS_PATH})" + mkdir -p "$(dirname "${SEARX_SETTINGS_PATH}")" - if [[ ! -f ${SEARX_SETTINGS_PATH} ]]; then + if [[ ! -f "${SEARX_SETTINGS_PATH}" ]]; then info_msg "install settings ${SEARX_SETTINGS_TEMPLATE}" info_msg " --> ${SEARX_SETTINGS_PATH}" cp "${SEARX_SETTINGS_TEMPLATE}" "${SEARX_SETTINGS_PATH}"