11 lines
472 B
Bash
11 lines
472 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
# Shared utilities for project scripts. Source this file, don't execute it.
|
||
|
|
# Usage: source "$(dirname "${BASH_SOURCE[0]}")/_lib.sh"
|
||
|
|
|
||
|
|
# Guard against double-sourcing
|
||
|
|
[[ -n "${_LIB_LOADED:-}" ]] && return 0
|
||
|
|
_LIB_LOADED=1
|
||
|
|
|
||
|
|
# ── Repo root ──────────────────────────────────────────────────
|
||
|
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|