Some checks failed
Mark stable commit / test-unit (push) Has been cancelled
Mark stable commit / test-integration (push) Has been cancelled
Mark stable commit / test-env-virtual (push) Has been cancelled
Mark stable commit / test-env-nix (push) Has been cancelled
Mark stable commit / test-e2e (push) Has been cancelled
Mark stable commit / test-virgin-user (push) Has been cancelled
Mark stable commit / test-virgin-root (push) Has been cancelled
Mark stable commit / mark-stable (push) Has been cancelled
* Centralize OS detection and normalization in a dedicated resolver module * Treat Manjaro consistently as Arch across dependencies and package install * Remove duplicated OS logic and legacy lib.sh * Rename installation entrypoint to init.sh and update Makefile accordingly https://chatgpt.com/share/693c7b50-3be0-800f-8aeb-daf3ee929ea3
27 lines
578 B
Bash
Executable File
27 lines
578 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
# shellcheck disable=SC1091
|
|
source "${SCRIPT_DIR}/os_resolver.sh"
|
|
|
|
OS_ID="$(osr_get_os_id)"
|
|
|
|
echo "[package] Detected OS: ${OS_ID}"
|
|
|
|
if ! osr_is_supported "${OS_ID}"; then
|
|
echo "[package] Unsupported OS: ${OS_ID}"
|
|
exit 1
|
|
fi
|
|
|
|
PKG_SCRIPT="$(osr_script_path_for "${SCRIPT_DIR}" "${OS_ID}" "package")"
|
|
|
|
if [[ ! -f "${PKG_SCRIPT}" ]]; then
|
|
echo "[package] Package script not found: ${PKG_SCRIPT}"
|
|
exit 1
|
|
fi
|
|
|
|
echo "[package] Executing: ${PKG_SCRIPT}"
|
|
exec bash "${PKG_SCRIPT}"
|