#!/usr/bin/env bash

readonly SCRIPT_NAME="limine-snapper-list"
export HOOK_CALLER="$SCRIPT_NAME"

if ((EUID != 0)); then
	echo -e "\033[91m ${SCRIPT_NAME} must be run with root privileges.\033[0m" >&2
	exit 1
fi

if ! command -v limine-snapper-sync &>/dev/null; then
	echo -e "ERROR: limine-snapper-sync not found." >&2
	exit 1
fi

limine-snapper-sync --no-mutex --no-hooks --list "${@}"
