From a91f9c08b53d68b64aeaa0b43c691e2474f3857c Mon Sep 17 00:00:00 2001 From: Erik Jensen Date: Fri, 30 Apr 2021 05:42:41 +0000 Subject: [PATCH] Support tab-delimited /etc/recovery.fstab Previously, update-binary only supported space-delimited /etc/recovery.fstab. --- build/meta/com/google/android/update-binary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/meta/com/google/android/update-binary b/build/meta/com/google/android/update-binary index 2551cd8..085955d 100644 --- a/build/meta/com/google/android/update-binary +++ b/build/meta/com/google/android/update-binary @@ -41,7 +41,7 @@ error_no_space() { } get_block_for_mount_point() { - grep -v "^#" /etc/recovery.fstab | grep " $1 " | tail -n1 | tr -s ' ' | cut -d' ' -f1 + grep -v "^#" /etc/recovery.fstab | grep "[[:blank:]]$1[[:blank:]]" | tail -n1 | tr -s [:blank:] ' ' | cut -d' ' -f1 } find_block() {