Skip to content

Commit

Permalink
call now guards against ~taskname explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpack committed Oct 1, 2020
1 parent 6d74251 commit e9e2d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sam/task.cr
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module Sam

# Launch current task. Prerequisites are invoked first.
def call(args : Args)
return if args.raw.find {|x| "~#{path}".index(x.to_s) }
return if args.raw.find {|x| "~#{path}" == x }
@invoked = true
case @block.arity
when 0, 1
Expand Down

0 comments on commit e9e2d67

Please sign in to comment.