From 952f905daeea8c025f4dacab5aa1ae059303b0b0 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Sat, 9 Mar 2024 04:03:45 +0530 Subject: [PATCH] =?UTF-8?q?@eshanized=20pushed=20another=20commit=20via=20?= =?UTF-8?q?script=20=F0=9F=94=A5=F0=9F=94=A5=F0=9F=94=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/snigdhaos-updater/aux-script | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 common/snigdhaos-updater/aux-script diff --git a/common/snigdhaos-updater/aux-script b/common/snigdhaos-updater/aux-script new file mode 100644 index 00000000..343ad101 --- /dev/null +++ b/common/snigdhaos-updater/aux-script @@ -0,0 +1,10 @@ +#!/bin/bash +set -e + +package-exists-fast(){ + if compgen -G "/var/lib/pacman/local/$1-*" >/dev/null; then + return 0 + else + return 1 + fi +} \ No newline at end of file