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