Support tab-delimited /etc/recovery.fstab

Previously, update-binary only supported space-delimited /etc/recovery.fstab.
This commit is contained in:
Erik Jensen 2021-04-30 05:42:41 +00:00
parent 79e8f3e922
commit a91f9c08b5

View File

@ -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() {