diff options
author | Pierre Labastie <pierre.labastie@neuf.fr> | 2021-12-13 16:03:46 +0100 |
---|---|---|
committer | Pierre Labastie <pierre.labastie@neuf.fr> | 2021-12-13 16:03:46 +0100 |
commit | e57e0291c3a879f96e225f1b80acd8f002e2a905 (patch) | |
tree | dd988a0eac04dc59ec6f113bba604d36775e71bb | |
parent | 5e1d9dd5d4a4a3ca7fc6b50f223a498d58ca4218 (diff) |
Change spacing in func_check_version output
This is needed to be able to fit "Docbook XSL stylesheets" in.
-rw-r--r-- | common/libs/func_check_version.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common/libs/func_check_version.sh b/common/libs/func_check_version.sh index fc7d79a903..7e0fdc268f 100644 --- a/common/libs/func_check_version.sh +++ b/common/libs/func_check_version.sh @@ -20,7 +20,8 @@ inline_doc declare -i major minor revision change declare -i ref_major ref_minor ref_revision ref_change - declare -r spaceSTR=" " + declare -r spaceSTR=" " + declare -r spaceSTR1=" " shopt -s extglob #needed for ${x##*(0)} below @@ -63,17 +64,17 @@ inline_doc # # Compare against minimum acceptable version.. (( major > ref_major )) && - echo " ${spaceSTR:${#tst_version}}${GREEN}OK${OFF} (Min version: ${ref_version})" && + echo " ${spaceSTR1:${#tst_version}}${GREEN}OK${OFF} (Min version: ${ref_version})" && return (( major < ref_major )) && write_error_and_die # major=ref_major (( minor < ref_minor )) && write_error_and_die (( minor > ref_minor )) && - echo " ${spaceSTR:${#tst_version}}${GREEN}OK${OFF} (Min version: ${ref_version})" && + echo " ${spaceSTR1:${#tst_version}}${GREEN}OK${OFF} (Min version: ${ref_version})" && return # minor=ref_minor (( revision >= ref_revision )) && - echo " ${spaceSTR:${#tst_version}}${GREEN}OK${OFF} (Min version: ${ref_version})" && + echo " ${spaceSTR1:${#tst_version}}${GREEN}OK${OFF} (Min version: ${ref_version})" && return # oops.. write error msg and die |