mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:07:35 +00:00
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
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
Add a link
Reference in a new issue