diff options
| author | lambdcalculus <64238778+lambdcalculus@users.noreply.github.com> | 2024-07-09 05:17:03 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-09 10:17:03 +0200 |
| commit | 81ca470c0cafe6a2533c3d26bf3275fd40434cab (patch) | |
| tree | 33d29e6409bf898d76a0fcca815f746e33c2756f /scripts | |
| parent | 9634d6ed03210026e663e152f94fda134115447a (diff) | |
Make launch.sh cwd-independent (#1011)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/launch.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/launch.sh b/scripts/launch.sh index dcf6e7af..bdae56d4 100644 --- a/scripts/launch.sh +++ b/scripts/launch.sh @@ -1,5 +1,10 @@ -#!/bin/sh +#!/bin/bash +# Required to launch correctly -# Required in CI to launch correctly +# Move to AO's directory +SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +cd "${SCRIPT_DIR}" + +# Run with correct linker path chmod +x Attorney_Online LD_LIBRARY_PATH=. ./Attorney_Online |
