Ports: Use absolute path of port_include

This ensures that .port_include will always import other scripts from
the correct location.
This commit is contained in:
Jan200101 2023-01-05 18:55:14 +01:00 committed by Jelle Raaijmakers
parent 4eae5de499
commit 141e5d6f20
Notes: sideshowbarker 2024-07-17 03:45:48 +09:00

View file

@ -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" "${@}"