From 16e27beaa24c6c551eaa0d3e6d115017939593a1 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 25 Aug 2019 06:06:41 +0200 Subject: Support multi-reports --- remote/lib/run.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 remote/lib/run.sh (limited to 'remote/lib/run.sh') diff --git a/remote/lib/run.sh b/remote/lib/run.sh new file mode 100644 index 0000000..fdd7311 --- /dev/null +++ b/remote/lib/run.sh @@ -0,0 +1,13 @@ +function run_ { + local output=$(eval source "$@") + + flock -x $0 echo -e "$output" +} + +function run { + if [ $parallel -gt 0 ]; then + run_ "$@" & + else + run_ "$@" + fi +} -- cgit v1.2.3