From cf9705cdd1d4e8f66586c5e5858e6a6e3dc5791f Mon Sep 17 00:00:00 2001 From: memdmp Date: Sun, 5 Jan 2025 05:06:59 +0100 Subject: fix: use ls --- pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg b/pkg index 72cb5aa..a09fee4 100755 --- a/pkg +++ b/pkg @@ -12,7 +12,7 @@ if [[ "$PKG" == "" ]]; then syntax; fi if ! [[ -f "src/$REPO/$PKG/APKBUILD" ]]; then echo -e "\x1b[0;91mThe package $PKG does not exist in $REPO in the current source tree.\x1b[0m" 1>&2; exit 1; fi -if ! [[ -f "target/$REPO/"*"/$PKG"*".apk" ]]; then +if ! ls "target/$REPO/"*"/$PKG"*".apk" > /dev/null 2>/dev/null; then echo -e "\x1b[0;91mThe package $PKG does not exist in $REPO in the current target, yet does exist in the source tree. Try building it.\x1b[0m" 1>&2; exit 1; fi if [[ "$OPERATION" == "readd" ]]; then -- cgit v1.2.3