#!/usr/bin/env bash # redirects CARGO_TARGET_DIR to the boot SSD instead of the repo's external disk if [ -n "${ACORD_BUILD_DIRS_DONE:-}" ]; then return 0 2>/dev/null || exit 0 fi export ACORD_BUILD_DIRS_DONE=1 export CARGO_TARGET_DIR="${CARGO_TARGET_DIR:-/tmp/acord/target}" mkdir -p "$CARGO_TARGET_DIR"