don't depend on BASH_SOURCE to get script path

This commit is contained in:
otavepto 2023-12-24 23:03:11 +02:00
parent 09cd6414f1
commit 51498ebfb2
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ if [ "$(id -u)" -ne 0 ]; then
fi fi
# common stuff # common stuff
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) script_dir=$( cd -- "$( dirname -- "${0}" )" &> /dev/null && pwd )
deps_dir="$script_dir/build-linux-deps" deps_dir="$script_dir/build-linux-deps"
third_party_dir="$script_dir/third-party" third_party_dir="$script_dir/third-party"
third_party_deps_dir="$third_party_dir/deps/linux" third_party_deps_dir="$third_party_dir/deps/linux"

View File

@ -8,7 +8,7 @@ fi
build_base_dir="build-linux" build_base_dir="build-linux"
out_dir="build-linux/package" out_dir="build-linux/package"
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) script_dir=$( cd -- "$( dirname -- "${0}" )" &> /dev/null && pwd )
[[ "$1" = '' ]] && { [[ "$1" = '' ]] && {
echo "[X] missing build folder"; echo "[X] missing build folder";