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"