From 992764f6eb05a5bbcd491e626dec42df9151337b Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 9 Aug 2024 21:29:05 +0200 Subject: [PATCH] build-system: check whether the argument is the build-script fixed --- Pmodules/modbuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index 570e499..b14e40f 100644 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -301,7 +301,7 @@ parse_args() { ;; * ) local -- arg="$1" - if [[ -r ${arg} ]]; then + if [[ -f "${arg}" && -x "${arg}" ]]; then BUILD_SCRIPT="$(std::get_abspath "${arg}")" BUILDBLOCK_DIR=$(dirname "${BUILD_SCRIPT}") elif [[ "${arg}" == */* ]]; then