diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index f5d5e7633d3..cebea496521 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" "${@}"