1
0
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:
Zdenek Kabelac 2023-02-09 14:02:17 +01:00
parent 30b9d4d4aa
commit cc2293f18e

View File

@ -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