Skip to content

Commit

Permalink
Do not re-add segment line in /etc/host if already exists (for hosted…
Browse files Browse the repository at this point in the history
… runners)

Signed-off-by: Guillaume Tardif <[email protected]>
  • Loading branch information
gtardif committed Jun 7, 2024
1 parent 829adb4 commit e4106cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
id: redirect-segment
shell: bash
run: |
echo '127.0.0.2 api.segment.io' | sudo tee -a /etc/hosts
cat /etc/hosts | grep '127.0.0.2 api.segment.io' || echo '127.0.0.2 api.segment.io' | sudo tee -a /etc/hosts
- name: Install macOS Docker Desktop dmg
if: runner.os == 'macOS'
Expand Down

0 comments on commit e4106cb

Please sign in to comment.