From a389067d29e0568f0ba925fd55eef38a1efeebee Mon Sep 17 00:00:00 2001 From: Aleksandr Sergeev <9811032c@opayq.com> Date: Thu, 21 Mar 2019 16:23:01 +0300 Subject: [PATCH] =?UTF-8?q?Replace=20=E2=80=9Cfind=E2=80=9D=20with=20?= =?UTF-8?q?=E2=80=9Cfindstr=E2=80=9D=20in=20batches=20(#764)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update service-install.bat * Update service-restart.bat * Update service-uninstall.bat --- windows/service-install.bat | 2 +- windows/service-restart.bat | 2 +- windows/service-uninstall.bat | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/windows/service-install.bat b/windows/service-install.bat index 2fa7b134..7a1164ca 100755 --- a/windows/service-install.bat +++ b/windows/service-install.bat @@ -3,7 +3,7 @@ setlocal EnableExtensions title DNSCrypt-Proxy -whoami /groups | find "S-1-16-12288" >nul && goto :admin +whoami /groups | findstr "S-1-16-12288" >nul && goto :admin if "%~1"=="RunAsAdmin" goto :error echo Requesting privileges elevation for managing the dnscrypt-proxy service . . . diff --git a/windows/service-restart.bat b/windows/service-restart.bat index b22d882c..4d7f598a 100755 --- a/windows/service-restart.bat +++ b/windows/service-restart.bat @@ -3,7 +3,7 @@ setlocal EnableExtensions title DNSCrypt-Proxy -whoami /groups | find "S-1-16-12288" >nul && goto :admin +whoami /groups | findstr "S-1-16-12288" >nul && goto :admin if "%~1"=="RunAsAdmin" goto :error echo Requesting privileges elevation for managing the dnscrypt-proxy service . . . diff --git a/windows/service-uninstall.bat b/windows/service-uninstall.bat index c6c7b330..6580862f 100755 --- a/windows/service-uninstall.bat +++ b/windows/service-uninstall.bat @@ -3,7 +3,7 @@ setlocal EnableExtensions title DNSCrypt-Proxy -whoami /groups | find "S-1-16-12288" >nul && goto :admin +whoami /groups | findstr "S-1-16-12288" >nul && goto :admin if "%~1"=="RunAsAdmin" goto :error echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .