From 241d5a96834b47293fcdf49211c7ceb2efd1e448 Mon Sep 17 00:00:00 2001 From: David Lannoye Date: Sun, 22 Sep 2019 14:40:07 -0700 Subject: [PATCH] Append to the host file on Win32 --- src/platforms/win32.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/win32.ts b/src/platforms/win32.ts index 0da6af1..2b73dbd 100644 --- a/src/platforms/win32.ts +++ b/src/platforms/win32.ts @@ -47,7 +47,7 @@ export default class WindowsPlatform implements Platform { async addDomainToHostFileIfMissing(domain: string) { let hostsFileContents = read(this.HOST_FILE_PATH, 'utf8'); if (!hostsFileContents.includes(domain)) { - await sudo(`echo 127.0.0.1 ${ domain } > ${ this.HOST_FILE_PATH }`); + await sudo(`echo 127.0.0.1 ${ domain } >> ${ this.HOST_FILE_PATH }`); } }