From 81f4dc90e8edf5e4cdd4d59b5afde18b33e5661a Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Tue, 23 Apr 2024 07:43:48 -0400 Subject: [PATCH] [F] Fix current dir --- tools/build_pkg.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build_pkg.sh b/tools/build_pkg.sh index 34c3c6d2..e4c25231 100644 --- a/tools/build_pkg.sh +++ b/tools/build_pkg.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# Get script directory +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +cd $DIR/.. + set -e # Remove the old build