diff --git a/Ports/.hosted_defs.sh b/Ports/.hosted_defs.sh index 8f0590f864..121800c5e8 100644 --- a/Ports/.hosted_defs.sh +++ b/Ports/.hosted_defs.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCRIPT="$(dirname "${0}")" +SCRIPT="$(realpath $(dirname "${BASH_SOURCE[0]}"))" export SERENITY_ARCH="${SERENITY_ARCH:-x86_64}" export SERENITY_TOOLCHAIN="${SERENITY_TOOLCHAIN:-GNU}" diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 0deca59f0d..50ae6973ce 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -eu -SCRIPT="$(dirname "${0}")" +SCRIPT="$(realpath $(dirname "${0}"))" if [ -z "${SERENITY_STRIPPED_ENV:-}" ]; then exec "${SCRIPT}/.strip_env.sh" "${@}"