Skip to content

Commit

Permalink
fix register bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Velichkovich authored and Igor Velichkovich committed Jun 5, 2017
1 parent c8987ab commit 97f05c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions alfred/alfred.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ func (a *Alfred) runTask(task string, args []string, formatted bool) bool {

// Register task output
if copyOfTask.Register != "" && copyOfTask.Command != "" {
if (a.Vars == nil) {
a.Vars = make(map[string]string)
}
a.Vars[copyOfTask.Register] = copyOfTask.Exec(copyOfTask.Command)
}

Expand Down

0 comments on commit 97f05c1

Please sign in to comment.