diff options
Diffstat (limited to 'pkg')
-rwxr-xr-x | pkg | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |