Replace “find” with “findstr” in batches (#764)
* Update service-install.bat * Update service-restart.bat * Update service-uninstall.bat
This commit is contained in:
parent
85abbeac61
commit
a389067d29
|
@ -3,7 +3,7 @@
|
||||||
setlocal EnableExtensions
|
setlocal EnableExtensions
|
||||||
title DNSCrypt-Proxy
|
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
|
if "%~1"=="RunAsAdmin" goto :error
|
||||||
|
|
||||||
echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .
|
echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
setlocal EnableExtensions
|
setlocal EnableExtensions
|
||||||
title DNSCrypt-Proxy
|
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
|
if "%~1"=="RunAsAdmin" goto :error
|
||||||
|
|
||||||
echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .
|
echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
setlocal EnableExtensions
|
setlocal EnableExtensions
|
||||||
title DNSCrypt-Proxy
|
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
|
if "%~1"=="RunAsAdmin" goto :error
|
||||||
|
|
||||||
echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .
|
echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .
|
||||||
|
|
Loading…
Reference in New Issue