changeset 144:6be3742d21f7

- FIX: Really print the version in check-ports - Use "printf" for all version output now
author Franz Glasner <hg@dom66.de>
date Wed, 30 Oct 2019 17:24:44 +0100
parents eb88d52613fe
children c4e9099a3d3e
files sbin/bsmtp2dma sbin/check-ports sbin/fjail sbin/fpkg
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sbin/bsmtp2dma	Wed Oct 30 09:42:25 2019 +0100
+++ b/sbin/bsmtp2dma	Wed Oct 30 17:24:44 2019 +0100
@@ -244,7 +244,7 @@
 while getopts "V8c:d:f:h:l:nr:s:" _opt; do
     case ${_opt} in
         V)
-            echo "bsmtp2dma v${VERSION} (rv:@@HGREVISION@@)"
+            echo 'bsmtp2dma v%s (rv:%s)\n' "${VERSION}" '@@HGREVISION@@'
             echo "$USAGE"
             exit 0;
             ;;
--- a/sbin/check-ports	Wed Oct 30 09:42:25 2019 +0100
+++ b/sbin/check-ports	Wed Oct 30 17:24:44 2019 +0100
@@ -397,7 +397,7 @@
 while getopts "VAasv" _opt ; do
     case ${_opt} in
 	V)
-            echo 'check-ports v${VERSION} (rv:@@HGREVISION@@)'
+            echo 'check-ports v%s (rv:%s)\n' "${VERSION}" '@@HGREVISION@@'
             exit 0
 	    ;;
         A)
--- a/sbin/fjail	Wed Oct 30 09:42:25 2019 +0100
+++ b/sbin/fjail	Wed Oct 30 17:24:44 2019 +0100
@@ -255,7 +255,7 @@
 while getopts "Vh" _opt ; do
     case ${_opt} in
         V)
-            echo "fjail v${VERSION} (rv:@@HGREVISION@@)"
+            printf 'fjail v%s (rv:%s)\n' "${VERSION}" '@@HGREVISION@@'
             exit 0
             ;;
         h)
--- a/sbin/fpkg	Wed Oct 30 09:42:25 2019 +0100
+++ b/sbin/fpkg	Wed Oct 30 17:24:44 2019 +0100
@@ -241,7 +241,7 @@
 while getopts "Vh" _opt ; do
     case ${_opt} in
         V)
-            echo "fpkg v${VERSION} (rv:@@HGREVISION@@)"
+            printf 'fpkg v%s (rv:%s)\n' "${VERSION}" '@@HGREVISION@@'
             exit 0
             ;;
         h)