summaryrefslogtreecommitdiff
path: root/ota-upload.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ota-upload.sh')
-rwxr-xr-xota-upload.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ota-upload.sh b/ota-upload.sh
index accfc23..760e9af 100755
--- a/ota-upload.sh
+++ b/ota-upload.sh
@@ -69,7 +69,7 @@ done
PRODUCT_DIR="$ROOT/out/target/product/$DEVICE"
[ -d "$PRODUCT_DIR" ] || die "product directory for device \"$DEVICE\" not found"
-ZIP="$(realpath "$(find "$PRODUCT_DIR" -type f -samefile "$PRODUCT_DIR/lineage_${DEVICE}-ota-eng.user.zip" | grep -v "lineage_${DEVICE}-ota-eng.user.zip" | sort -r | head -1)")"
+ZIP="$(realpath "$(find "$PRODUCT_DIR" -type f -samefile "$PRODUCT_DIR/lineage_${DEVICE}-ota-eng.user.zip" | grep -v "lineage_${DEVICE}-ota-eng.user.zip" | grep -e .zip$ | sort -r | head -1)")"
ZIP_NAME="$(basename "$ZIP")"
PROP="$PRODUCT_DIR/system/build.prop"