summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-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