From f77f2a7955209ef9063472fc4063c301cfe59213 Mon Sep 17 00:00:00 2001 From: oddlama Date: Sun, 30 May 2021 21:30:45 +0200 Subject: [PATCH] Ignore partprobe output --- scripts/utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/utils.sh b/scripts/utils.sh index 5f747e6..b4a551d 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -125,7 +125,7 @@ function get_blkid_field_by_device() { local device="$2" blkid -g \ || die "Error while executing blkid -g" - partprobe + partprobe &>/dev/null local val val="$(blkid -o export "$device")" \ || die "Error while executing blkid '$device'" @@ -150,7 +150,7 @@ function get_device_by_blkid_field() { local field_value="$2" blkid -g \ || die "Error while executing blkid -g" - type partprobe &>/dev/null && partprobe + type partprobe &>/dev/null && partprobe &>/dev/null local dev dev="$(blkid -o export -t "$blkid_field=$field_value")" \ || die "Error while executing blkid to find $blkid_field=$field_value"