summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-08-15 23:08:43 +0100
committerChris Lamb <chris@chris-lamb.co.uk>2008-08-15 23:08:43 +0100
commitbdc4ff6457437eaaaccc80fc44c70dee0af8f5bf (patch)
tree65b659acec157395226da618abe74c5e0f876954
parent6ca117018e25b426b49e709e59015afec56fa3d7 (diff)
downloadvyos-live-build-bdc4ff6457437eaaaccc80fc44c70dee0af8f5bf.tar.gz
vyos-live-build-bdc4ff6457437eaaaccc80fc44c70dee0af8f5bf.zip
Don't use interpolation to print usage and help as it breaks newlines and tabs.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
-rwxr-xr-xfunctions/help.sh4
-rwxr-xr-xfunctions/usage.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/functions/help.sh b/functions/help.sh
index 5bad826fd..c0d3fe6eb 100755
--- a/functions/help.sh
+++ b/functions/help.sh
@@ -18,7 +18,7 @@ Help ()
if [ -n "${USAGE}" ]
then
- Echo "%s" "${USAGE}"
+ Echo "${USAGE}"
echo
fi
Echo " %s [-h|--help]" "${PROGRAM}"
@@ -28,7 +28,7 @@ Help ()
if [ -n "${HELP}" ]
then
- Echo "%s" "${HELP}"
+ Echo "${HELP}"
echo
fi
diff --git a/functions/usage.sh b/functions/usage.sh
index f228dd761..08161ae6d 100755
--- a/functions/usage.sh
+++ b/functions/usage.sh
@@ -18,7 +18,7 @@ Usage ()
if [ -n "${USAGE}" ]
then
- Echo " %s" "${USAGE}"
+ Echo " ${USAGE}"
echo
fi