#!/usr/bin/env bash
set -euo pipefail

REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

if [[ "${EUID}" -ne 0 ]]; then
  exec sudo bash "$0" "$@"
fi

bash "${REPO_ROOT}/scripts/install-core.sh"
bash "${REPO_ROOT}/scripts/setup-shell.sh"

echo "AthenaOS installed. Run: athena doctor"

