Commit f80d3498 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix a awk bug in get_ufstype function

parent 5c4d4bee
......@@ -478,7 +478,7 @@ get_ufstype() {
local device ufs
device="$1"
ufs="$($DUMPFS_UFS "$device" | head -1 | awk '{ match ($3, /\((.+)\)/, ufs); print ufs[1] }')"
ufs="$($DUMPFS_UFS "$device" | head -1 | awk -F "[()]" '{ for (i=2; i<NF; i+=2) print $i }')"
case "$ufs" in
UFS1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment