summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-01-05 05:06:59 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-01-05 05:06:59 +0100
commitcf9705cdd1d4e8f66586c5e5858e6a6e3dc5791f (patch)
tree53230770a0eb61a647609695dee3281592cf9872
parent617d93582704fab32603c562eb31a3fa0ac7275d (diff)
downloadalpine-packages-cf9705cdd1d4e8f66586c5e5858e6a6e3dc5791f.tar.gz
alpine-packages-cf9705cdd1d4e8f66586c5e5858e6a6e3dc5791f.tar.bz2
alpine-packages-cf9705cdd1d4e8f66586c5e5858e6a6e3dc5791f.tar.lz
alpine-packages-cf9705cdd1d4e8f66586c5e5858e6a6e3dc5791f.zip

fix: use ls

-rwxr-xr-xpkg2
1 files changed, 1 insertions, 1 deletions
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