Skip to content

Commit 98bf293

Browse files
committed
handle quoted parameters
1 parent 8941f81 commit 98bf293

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

scripts/soda/exec.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,12 @@ execute() {
130130
#
131131
# Calls the given function. Using this method will broadcast events around the call:
132132
#
133-
# ${TASK_NAME}-start: after task call
134-
# ${TASK_NAME}-finish: before task call
133+
# ${FUNCTION_NAME}-start: after call
134+
# ${FUNCTION_NAME}-finish: before call
135135
#
136136
call() {
137-
local task="$1"
138-
shift
139-
broadcast "${task}-start"
140-
$task $@
141-
broadcast "${task}-finish"
137+
local function_name="$1"
138+
broadcast "${function_name}-start"
139+
"$@"
140+
broadcast "${function_name}-finish"
142141
}

0 commit comments

Comments
 (0)