mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-26 10:24:14 +08:00
don't depend on BASH_SOURCE to get script path
This commit is contained in:
parent
09cd6414f1
commit
51498ebfb2
@ -19,7 +19,7 @@ if [ "$(id -u)" -ne 0 ]; then
|
||||
fi
|
||||
|
||||
# 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"
|
||||
third_party_dir="$script_dir/third-party"
|
||||
third_party_deps_dir="$third_party_dir/deps/linux"
|
||||
|
@ -8,7 +8,7 @@ fi
|
||||
|
||||
build_base_dir="build-linux"
|
||||
out_dir="build-linux/package"
|
||||
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
script_dir=$( cd -- "$( dirname -- "${0}" )" &> /dev/null && pwd )
|
||||
|
||||
[[ "$1" = '' ]] && {
|
||||
echo "[X] missing build folder";
|
||||
|
Loading…
x
Reference in New Issue
Block a user