Make launch.sh cwd-independent (#1011)

This commit is contained in:
lambdcalculus 2024-07-09 05:17:03 -03:00 committed by GitHub
parent 9634d6ed03
commit 81ca470c0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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