From 339db57a2853b4be4d6cdd5bb73f0f2ecab54c52 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sun, 22 Jan 2023 21:16:53 +0300 Subject: fix ota-upload --- ota-upload.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3