Resolve $PREFIX to an absolute path at the start of shell scripts
This fixes building/installing into a relative path.
This commit is contained in:
1 parent
ecdbfaacc3
commit
53db1c3a4c
7 files changed
+20
No files matched your search
@@ -19,6 +19,9 @@ if [ -z "$PREFIX" ]; then
|
||||
echo $0 [--build-sanitizers] dest
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$PREFIX"
|
||||
PREFIX="$(cd "$PREFIX" && pwd)"
|
||||
export PATH=$PREFIX/bin:$PATH
|
||||
|
||||
: ${CORES:=$(nproc 2>/dev/null)}
|
||||
|
||||
Reference in new issue
Block a user