Tools: build_parameters.sh: honour $BUILDLOGS

This commit is contained in:
Peter Barker 2021-07-08 11:22:33 +10:00 committed by Peter Barker
parent 52aa676db2
commit b365fc129d
1 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,10 @@
set -e
set -x
PARAMS_DIR="../buildlogs/Parameters"
if [ "x$BUILDLOGS" = "x" ]; then
BUILDLOGS="../buildlogs"
fi
PARAMS_DIR="$BUILDLOGS/Parameters"
# work from either APM directory or above
[ -d ArduPlane ] || cd APM