From 7133ff4484c5d9c0ba8bba7f4858fad8a4285dd5 Mon Sep 17 00:00:00 2001 From: oddlama Date: Sun, 30 May 2021 21:28:06 +0200 Subject: [PATCH] Fixed ignoring type output --- scripts/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils.sh b/scripts/utils.sh index ba167ed..5f747e6 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -150,7 +150,7 @@ function get_device_by_blkid_field() { local field_value="$2" blkid -g \ || die "Error while executing blkid -g" - type partprobe && partprobe + type partprobe &>/dev/null && partprobe local dev dev="$(blkid -o export -t "$blkid_field=$field_value")" \ || die "Error while executing blkid to find $blkid_field=$field_value"