1
1
mirror of https://github.com/rsms/inter.git synced 2024-08-15 22:00:25 +03:00

tooling: allow customizing build dir for init.sh

This commit is contained in:
Rasmus Andersson 2022-05-27 14:35:12 -07:00
parent 5a4bc46f2e
commit ad1408e1a6

View File

@ -3,7 +3,7 @@ SCRIPT_FILE=${BASH_SOURCE[0]}
[ -n "$SCRIPT_FILE" ] || SCRIPT_FILE=${(%):-%N} # zsh
SRCDIR=$(dirname "$(realpath "$SCRIPT_FILE")")
BUILD_DIR=$SRCDIR/build
BUILD_DIR=${BUILD_DIR:-$SRCDIR/build}
if [[ "${BUILD_DIR:0:2}" == "./" ]]; then
BUILD_DIR=${BUILD_DIR:2}