summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-01-22 21:16:53 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-01-22 21:16:53 +0300
commit339db57a2853b4be4d6cdd5bb73f0f2ecab54c52 (patch)
tree22c068d9a3ce2ac74f70473c876d2570ea3a4b0c
parentf952b86bbb84b15e77b3a2a7769d56eeda97a650 (diff)
fix ota-uploadHEADmaster
-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"