Skip to content

Commit a389067

Browse files
sergeevabcjedisct1
authored andcommitted
Replace “find” with “findstr” in batches (#764)
* Update service-install.bat * Update service-restart.bat * Update service-uninstall.bat
1 parent 85abbea commit a389067

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

windows/service-install.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setlocal EnableExtensions
44
title DNSCrypt-Proxy
55

6-
whoami /groups | find "S-1-16-12288" >nul && goto :admin
6+
whoami /groups | findstr "S-1-16-12288" >nul && goto :admin
77
if "%~1"=="RunAsAdmin" goto :error
88

99
echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .

windows/service-restart.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setlocal EnableExtensions
44
title DNSCrypt-Proxy
55

6-
whoami /groups | find "S-1-16-12288" >nul && goto :admin
6+
whoami /groups | findstr "S-1-16-12288" >nul && goto :admin
77
if "%~1"=="RunAsAdmin" goto :error
88

99
echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .

windows/service-uninstall.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setlocal EnableExtensions
44
title DNSCrypt-Proxy
55

6-
whoami /groups | find "S-1-16-12288" >nul && goto :admin
6+
whoami /groups | findstr "S-1-16-12288" >nul && goto :admin
77
if "%~1"=="RunAsAdmin" goto :error
88

99
echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .

0 commit comments

Comments
 (0)