about summary refs log tree commit diff
path: root/tools/with-tee.bash
diff options
context:
space:
mode:
Diffstat (limited to 'tools/with-tee.bash')
-rwxr-xr-xtools/with-tee.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/with-tee.bash b/tools/with-tee.bash
new file mode 100755
index 000000000000..60c331326d28
--- /dev/null
+++ b/tools/with-tee.bash
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+echo "${@:2} | tee $1"
+
+${@:2} | tee $1