Skip to content

Commit

Permalink
Fix the PATH variable reference inside exports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Hepworth authored and Karl Hepworth committed Nov 19, 2017
1 parent fb9fce4 commit 36f6dfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tasks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
- regex: "export GOPATH"
lineinfile: "export GOPATH={{ GOPATH }}"
- regex: "PATH:{{ GOROOT }}/bin"
lineinfile: "export PATH:{{ GOROOT }}/bin"
- regex: "PATH:{{ GOPATH }}"
lineinfile: "export PATH=$PATH:{{ GOPATH }}"
lineinfile: "export PATH=$PATH:{{ GOROOT }}/bin"
- regex: "PATH:{{ GOPATH }}/bin"
lineinfile: "export PATH=$PATH:{{ GOPATH }}/bin"
when: shell_exports is not defined
Expand Down
4 changes: 1 addition & 3 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
- regex: "export GOPATH"
lineinfile: "export GOPATH={{ GOPATH }}"
- regex: "PATH:{{ GOROOT }}/bin"
lineinfile: "export PATH:{{ GOROOT }}/bin"
- regex: "PATH:{{ GOPATH }}"
lineinfile: "export PATH=$PATH:{{ GOPATH }}"
lineinfile: "export PATH=$PATH:{{ GOROOT }}/bin"
- regex: "PATH:{{ GOPATH }}/bin"
lineinfile: "export PATH=$PATH:{{ GOPATH }}/bin"
when: shell_exports is not defined
Expand Down

0 comments on commit 36f6dfa

Please sign in to comment.