This commit is contained in:
David Holdeman 2024-04-24 15:22:10 -05:00
parent cc3ca5fc48
commit d1ecead8b7
No known key found for this signature in database
GPG Key ID: DBEE6FCFCC9DD9A6
1 changed files with 4 additions and 0 deletions

View File

@ -32,7 +32,11 @@ fi
echo "BOARD_DIR=${BOARD_DIR} SHORT_BOARD_NAME=${SHORT_BOARD_NAME}"
which realpath >/dev/null 2>&1 || (which grealpath >/dev/null 2>&1 && alias realpath='grealpath')
echo "path: $0"
echo "dirname: $(dirname $0)"
FDIR=$(realpath $(dirname "$0"))
echo "fdir: $FDIR"
echo "rp: $(which realpath)"
BOARD_DIR=$(realpath --relative-to "$FDIR" "$BOARD_DIR")
cd "$FDIR"