#!/usr/bin/env bash

# omarchy:summary=Returns true if any of the named packages are missing from the system (or false if they're all there).
# omarchy:args=<packages...>

# Based: the answer lives in omarchy-pkg-present; this is its complement,
# and a bad spec stays a bad spec (2) rather than a missing package.
omarchy-pkg-present "$@"
case $? in
  0) exit 1 ;;
  2) exit 2 ;;
  *) exit 0 ;;
esac
