mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: avoid using length
Use ${# for length instead.
This commit is contained in:
parent
30b9d4d4aa
commit
cc2293f18e
@ -87,7 +87,7 @@ mkdtemp() {
|
||||
base_template=$(echo "$template" | sed 's/XX*$//')
|
||||
|
||||
# Calculate how many X's we've just removed.
|
||||
nx=$(expr length "$template" - length "$base_template")
|
||||
nx=$(( ${#template} - ${#base_template} ))
|
||||
|
||||
err=
|
||||
i=1
|
||||
|
Loading…
Reference in New Issue
Block a user