From 141e5d6f2040aa01ed702b024f7ac0ef00416fba Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Thu, 5 Jan 2023 18:55:14 +0100 Subject: [PATCH] Ports: Use absolute path of port_include This ensures that .port_include will always import other scripts from the correct location. --- Ports/.port_include.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index f5d5e7633d..cebea49652 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -eu -SCRIPT="$(realpath $(dirname "${0}"))" +SCRIPT="$(realpath $(dirname "${BASH_SOURCE[0]}"))" if [ -z "${SERENITY_STRIPPED_ENV:-}" ]; then exec "${SCRIPT}/.strip_env.sh" "${@}"