Fixed ignoring type output
This commit is contained in:
parent
0ca4967160
commit
7133ff4484
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue