[jhalfs] 01/04: Change spacing in func_check_version output

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

commit e57e0291c3a879f96e225f1b80acd8f002e2a905
Author: Pierre Labastie <[email protected]>
AuthorDate: Mon Dec 13 16:03:46 2021 +0100

    Change spacing in func_check_version output
    
    This is needed to be able to fit "Docbook XSL stylesheets" in.
---
 common/libs/func_check_version.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/common/libs/func_check_version.sh b/common/libs/func_check_version.sh
index fc7d79a..7e0fdc2 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.