Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1nksm committed Jul 20, 2019
1 parent 372b0d7 commit 4fac6eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libexec/shellspec-profiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -eu

handler() {
eval "counter${index}=$counter && index=$(($index + 1))"
eval "counter${index}=$counter index=$(($index + 1)) cmd=:"
}

terminate() {
Expand Down
4 changes: 2 additions & 2 deletions libexec/shellspec-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ start_profiler() {

stop_profiler() {
[ "$SHELLSPEC_PROFILER_PID" ] || return 0
signal -TERM "$SHELLSPEC_PROFILER_PID" 2>/dev/null ||:
profiler_pid=$SHELLSPEC_PROFILER_PID && SHELLSPEC_PROFILER_PID=''
signal -TERM "$profiler_pid" 2>/dev/null ||:
sleep_wait [ ! -e "$SHELLSPEC_TMPBASE/profiler.done" ] ||:
SHELLSPEC_PROFILER_PID=''
}

cleanup() {
Expand Down

0 comments on commit 4fac6eb

Please sign in to comment.