Ports: Use absolute path of script
The relative paths are not valid inside a port build directory. This makes target_env source .hosted_defs.sh correctly.
This commit is contained in:
parent
b85f4ab66a
commit
058a39c6fc
Notes:
sideshowbarker
2024-07-18 05:37:06 +09:00
Author: https://github.com/Jan200101 Commit: https://github.com/SerenityOS/serenity/commit/058a39c6fc Pull-request: https://github.com/SerenityOS/serenity/pull/16617 Reviewed-by: https://github.com/timschumi ✅
2 changed files with 2 additions and 2 deletions
|
@ -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}"
|
||||
|
|
|
@ -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" "${@}"
|
||||
|
|
Loading…
Add table
Reference in a new issue