From 81ca470c0cafe6a2533c3d26bf3275fd40434cab Mon Sep 17 00:00:00 2001 From: lambdcalculus <64238778+lambdcalculus@users.noreply.github.com> Date: Tue, 9 Jul 2024 05:17:03 -0300 Subject: [PATCH] Make launch.sh cwd-independent (#1011) --- scripts/launch.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/launch.sh b/scripts/launch.sh index dcf6e7a..bdae56d 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