Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image
Commits
f80d3498
Commit
f80d3498
authored
Oct 29, 2013
by
Nikos Skalkotos
Browse files
Fix a awk bug in get_ufstype function
parent
5c4d4bee
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-image-helper/common.sh
View file @
f80d3498
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment