Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
fixed hosts bat
Browse files Browse the repository at this point in the history
  • Loading branch information
mierzwid committed Sep 3, 2020
1 parent b23440c commit 684f224
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions env/hosts.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
del .gap.hosts.tmp

echo gradlew.bat environmentHosts -q > .gap.hosts.tmp

powershell -command "Start-Process cmd -ArgumentList '/C cd %CD% && type .gap.hosts.tmp >> C:\Windows\System32\drivers\etc\hosts' -Verb runas"

del .gap.hosts.tmp
gradlew.bat environmentHosts -q > .gap.hosts.tmp & powershell -command "Start-Process cmd -ArgumentList '/C cd %CD% && type .gap.hosts.tmp >> C:\Windows\System32\drivers\etc\hosts' -Verb runas"

0 comments on commit 684f224

Please sign in to comment.