summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2008-10-22 20:08:56 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:43 +0100
commit568f905c51c89cddd774caa3650c3b6fba0a0c00 (patch)
tree27006e3234f7dec64f2ab8f35bddc040fe17a5bf
parentf1d230a6b5fa7147565a0e72059b3f41a6596cd6 (diff)
downloadvyos-live-build-568f905c51c89cddd774caa3650c3b6fba0a0c00.tar.gz
vyos-live-build-568f905c51c89cddd774caa3650c3b6fba0a0c00.zip
Add utility to dump specified file to stdout.
-rwxr-xr-xfunctions/echo.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/functions/echo.sh b/functions/echo.sh
index c5ec7e5e8..e9573a8f2 100755
--- a/functions/echo.sh
+++ b/functions/echo.sh
@@ -79,3 +79,11 @@ Echo_breakage ()
Echo_message "${@}"
}
+
+Echo_file ()
+{
+ while read LINE
+ do
+ echo "${1}: ${LINE}"
+ done < "${1}"
+}