Files
IronFox/scripts/env.sh
celenity 923042e2de fix: revert "fix: temporarily revert certain env + CI script changes for now"
This reverts commit 3dd7cf2d5f, as these changes were not related to the issue

Signed-off-by: celenity <celenity@celenity.dev>
2026-04-05 20:12:43 +00:00

24 lines
524 B
Bash
Executable File

#!/bin/bash
# IronFox environment variables
set -euo pipefail
if [[ ! -f "$(dirname $0)/env_local.sh" ]]; then
readonly ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
readonly ENV_LOCAL="${ROOT}/scripts/env_local.sh"
# Write env_local.sh
echo "Writing ${ENV_LOCAL}..."
cat > "${ENV_LOCAL}" << EOF
readonly IRONFOX_ROOT="${ROOT}"
export IRONFOX_ROOT
source "\${IRONFOX_ROOT}/scripts/env_common.sh"
EOF
fi
if [[ -z "${IRONFOX_SET_ENVS+x}" ]]; then
source "$(dirname $0)/env_local.sh"
fi