Skip to content

Commit

Permalink
Ports: Use absolute path of port_include
Browse files Browse the repository at this point in the history
This ensures that .port_include will always import other scripts from
the correct location.
  • Loading branch information
Jan200101 authored and gmta committed Jan 29, 2023
1 parent 4eae5de commit 141e5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ports/.port_include.sh
Original file line number Diff line number Diff line change
@@ -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" "${@}"
Expand Down

0 comments on commit 141e5d6

Please sign in to comment.