From b15c6b710f19b74398acd738efb6281183c88b8d Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 24 Aug 2025 12:05:10 +0900 Subject: updates --- mac/.local/bin/ifinstalled | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mac/.local/bin/ifinstalled') diff --git a/mac/.local/bin/ifinstalled b/mac/.local/bin/ifinstalled index d0bd26b..b48dd63 100755 --- a/mac/.local/bin/ifinstalled +++ b/mac/.local/bin/ifinstalled @@ -6,7 +6,10 @@ # various other scripts for clarity's sake. for x in "$@"; do - if ! which "$x" >/dev/null 2>&1 && ! pacman -Qq "$x" >/dev/null 2>&1; then - notify-send "📦 $x" "must be installed for this function." && exit 1 + if ! command -v "$x" >/dev/null 2>&1 && + ! brew list --formula "$x" >/dev/null 2>&1 && + ! brew list --cask "$x" >/dev/null 2>&1; then + osascript -e 'display notification "'"$x"' must be installed for this function." with title "📦 Dependency missing"' + exit 1 fi done -- cgit v1.2.3