mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Refactor BUILDROOT_ABS initialization to provide a default path (#991)
This commit is contained in:
parent
eab105965d
commit
127c935106
@ -1,12 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$BUILD_ROOT_PATH" = "" ]; then
|
||||
echo "The script must be run in the SPC build environment."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")"
|
||||
BUILDROOT_ABS=$BUILD_ROOT_PATH
|
||||
BUILDROOT_ABS="${BUILD_ROOT_PATH:-$(realpath "$SCRIPT_DIR/../../../buildroot/include" 2>/dev/null || true)}"
|
||||
PARSED_ARGS=()
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user