build-system: check whether the argument is the build-script fixed

This commit is contained in:
2024-08-09 21:29:05 +02:00
parent 03c8a2065b
commit 992764f6eb
+1 -1
View File
@@ -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