summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-08-14 20:25:29 +0200
committerDaniel Baumann <daniel@debian.org>2008-08-14 20:25:29 +0200
commit5977735ed1df2c7411632a504090441cdecdd66b (patch)
treeb4f2020984905db9e5009a94a7e4a345e2c3fe89
parent8299a9c361aa8c250458da984387538f7c47bd86 (diff)
downloadvyos-live-build-5977735ed1df2c7411632a504090441cdecdd66b.tar.gz
vyos-live-build-5977735ed1df2c7411632a504090441cdecdd66b.zip
Adding generic echo function.
-rwxr-xr-xfunctions/echo.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/functions/echo.sh b/functions/echo.sh
index d865ddb02..c5ec7e5e8 100755
--- a/functions/echo.sh
+++ b/functions/echo.sh
@@ -9,6 +9,14 @@
set -e
+Echo ()
+{
+ STRING="${1}"
+ shift
+
+ printf "$(eval_gettext "${STRING}")" "${@}"; echo;
+}
+
Echo_debug ()
{
STRING="${1}"