refactor: remove bootstrap spaghetti from installers

This commit is contained in:
2026-06-22 09:11:39 +05:30
parent 7e48f01cca
commit a56bee0b9c
17 changed files with 78 additions and 170 deletions

View File

@@ -18,6 +18,10 @@ is_sourced=false
if [ -n "${BASH_SOURCE[0]:-}" ] && [ "${BASH_SOURCE[0]}" != "$0" ]; then
is_sourced=true
fi
# Detect eval from installers based on presence of specific variables
if [ -n "${METASCRIPT_URL:-}" ]; then
is_sourced=true
fi
# Locate or download libraries so that sourced installers can use them
BOOTSTRAP_DIR="${BOOTSTRAP_DIR:-$HOME/.config/bootstrap}"