summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-08-15 23:08:43 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:40 +0100
commit026a683b771ef549337777a28b636555dabd260b (patch)
tree54e564b1feb331d0e69d6b7ff7c48f175a23ac8f
parent1a8e86926512078b8bee53264102ce332556b4cd (diff)
downloadvyos-live-build-026a683b771ef549337777a28b636555dabd260b.tar.gz
vyos-live-build-026a683b771ef549337777a28b636555dabd260b.zip
Don't use interpolation to print usage and help as it breaks newlines and tabs.
-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