Skip to content

Commit

Permalink
improve testing variable length
Browse files Browse the repository at this point in the history
  • Loading branch information
grass committed Nov 29, 2022
1 parent 2357aae commit 4f8cd0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/bin/installer-dist
Expand Up @@ -1312,7 +1312,7 @@ get_version(){
[ "${guest_version%%*[^0-9.]*}" ] ||
die 1 "Invalid guest version: contains unexpected characters."
## block string containing more than 12 chars
[ "$(printf %s"${guest_version}" | wc -m)" -le 12 ] ||
[ "${#guest_version}" -le 12 ] ||
die 1 "Invalid guest version: contains more than 12 characters."
}

Expand Down

0 comments on commit 4f8cd0d

Please sign in to comment.