We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8941f81 commit 98bf293Copy full SHA for 98bf293
1 file changed
scripts/soda/exec.sh
@@ -130,13 +130,12 @@ execute() {
130
#
131
# Calls the given function. Using this method will broadcast events around the call:
132
133
-# ${TASK_NAME}-start: after task call
134
-# ${TASK_NAME}-finish: before task call
+# ${FUNCTION_NAME}-start: after call
+# ${FUNCTION_NAME}-finish: before call
135
136
call() {
137
- local task="$1"
138
- shift
139
- broadcast "${task}-start"
140
- $task $@
141
- broadcast "${task}-finish"
+ local function_name="$1"
+ broadcast "${function_name}-start"
+ "$@"
+ broadcast "${function_name}-finish"
142
}
0 commit comments