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 4950c79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion start/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ 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 }
cat /etc/hosts | grep '127.0.0.2 api.segment.io'
- name: Install macOS Docker Desktop dmg
if: runner.os == 'macOS'
Expand Down

0 comments on commit 4950c79

Please sign in to comment.