From d93149583747be65db3cedca023d717373827265 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Mon, 27 Aug 2018 21:57:37 +0200 Subject: [PATCH] Patcher: more verbose --- patcher/CommonPatcher | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patcher/CommonPatcher b/patcher/CommonPatcher index 57bd352..a15de9f 100644 --- a/patcher/CommonPatcher +++ b/patcher/CommonPatcher @@ -87,13 +87,14 @@ mount_partitions () { [ ! -f /system/build.prop ] && error "failed to mount /system (unsupported A/B device?)" - is_mounted /vendor || mount -o ro /vendor 2>/dev/null + ! is_mounted /vendor && mount /vendor if ! is_mounted /vendor; then VENDORBLOCK=$(find /dev/block -iname vendor${SLOT} | head -n 1) - mount -t ext4 -o ro ${VENDORBLOCK} /vendor 2>/dev/null + mount -t ext4 -o ro ${VENDORBLOCK} /vendor fi mount + echo }