#!/usr/bin/env bash # Installs the Omastrator 0.2 beta with pacman. Read before running: curl -fsSL https://get.seanireton.com/omastrator set -euo pipefail arch=$(uname -m) case $arch in x86_64|aarch64) ;; *) echo "Sorry, Omastrator 0.2 needs an x86_64 or aarch64 machine (this is $arch)."; exit 1;; esac command -v pacman >/dev/null || { echo "Sorry, this installer needs Arch Linux or Omarchy (pacman)."; exit 1; } file=omastrator-beta-0.2.3_beta.5-1-$arch.pkg.tar.zst base=https://get.seanireton.com/JD9p5AUdkPFoKBTjeR8MxbT6a5DRTAtd tmp=$(mktemp -d) trap 'rm -rf "$tmp"' EXIT echo "Downloading Omastrator 0.2 beta for $arch..." curl -fsSL -o "$tmp/$file" "$base/$file" curl -fsSL -o "$tmp/$file.sha256" "$base/$file.sha256" (cd "$tmp" && sha256sum -c --quiet "$file.sha256") echo "Installing (pacman asks for your password)..." sudo pacman -U --needed "$tmp/$file"