#!/bin/bash

# omarchy:summary=Check whether the Omarchy package has an available update.

set -e

if pacman -Qu omarchy >/tmp/omarchy-update-available.$$ 2>/dev/null; then
  cat /tmp/omarchy-update-available.$$
  rm -f /tmp/omarchy-update-available.$$
  exit 0
fi

rm -f /tmp/omarchy-update-available.$$
echo "Omarchy is up to date"
exit 1
