Skip to content

Commit

Permalink
fix(cmd): only run go cmd if go cmd found
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed May 8, 2020
1 parent 9fd18ca commit 142f89d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions golang/cmd/clean.sls
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ golang-cmd-clean-cmd-run-go-clean-{{ package }}:
cmd.run:
- name: go clean -i {{ package }}...
- runas: {{ golang.rootuser }}
- onlyif: which go || test -f /usr/local/bin/go
{%- endfor %}
1 change: 1 addition & 0 deletions golang/cmd/goget.sls
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ golang-cmd-goget-cmd-run-go-get-{{ package }}:
cmd.run:
- name: go get {{ package }}
- runas: {{ golang.rootuser }}
- onlyif: which go || test -f /usr/local/bin/go
{%- endfor %}

0 comments on commit 142f89d

Please sign in to comment.