Renormalize line-endings

Git has been nagging me about these files that I haven't touched being changed.
The solution was to run `git add --renormalize .`.
Apparently this needs to be done after setting up `.gitattributes`.
According to `git ls-files --eol windows/`, the .bat files were previously stored in the index with CRLF endings and will now be stored with LF endings (with .gitattributes dictating that checked out copies will use CRLF).
This commit is contained in:
William Elwood 2019-11-12 16:10:57 +00:00
parent d063a7959e
commit 2c49804bd0
3 changed files with 105 additions and 105 deletions

View File

@ -1,35 +1,35 @@
@set @_cmd=1 /* @set @_cmd=1 /*
@echo off @echo off
setlocal EnableExtensions setlocal EnableExtensions
title DNSCrypt-Proxy title DNSCrypt-Proxy
whoami /groups | findstr "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 . . .
cscript /nologo /e:javascript "%~f0" || goto :error cscript /nologo /e:javascript "%~f0" || goto :error
exit /b exit /b
:error :error
echo. echo.
echo Error: Administrator privileges elevation failed, echo Error: Administrator privileges elevation failed,
echo please manually run this script as administrator. echo please manually run this script as administrator.
echo. echo.
goto :end goto :end
:admin :admin
pushd "%~dp0" pushd "%~dp0"
dnscrypt-proxy.exe -service install dnscrypt-proxy.exe -service install
dnscrypt-proxy.exe -service start dnscrypt-proxy.exe -service start
popd popd
echo. echo.
echo Thank you for using DNSCrypt-Proxy! echo Thank you for using DNSCrypt-Proxy!
:end :end
set /p =Press [Enter] to exit . . . set /p =Press [Enter] to exit . . .
exit /b */ exit /b */
// JScript, restart batch script as administrator // JScript, restart batch script as administrator
var objShell = WScript.CreateObject('Shell.Application'); var objShell = WScript.CreateObject('Shell.Application');
var ComSpec = WScript.CreateObject('WScript.Shell').ExpandEnvironmentStrings('%ComSpec%'); var ComSpec = WScript.CreateObject('WScript.Shell').ExpandEnvironmentStrings('%ComSpec%');
objShell.ShellExecute(ComSpec, '/c ""' + WScript.ScriptFullName + '" RunAsAdmin"', '', 'runas', 1); objShell.ShellExecute(ComSpec, '/c ""' + WScript.ScriptFullName + '" RunAsAdmin"', '', 'runas', 1);

View File

@ -1,35 +1,35 @@
@set @_cmd=1 /* @set @_cmd=1 /*
@echo off @echo off
setlocal EnableExtensions setlocal EnableExtensions
title DNSCrypt-Proxy title DNSCrypt-Proxy
whoami /groups | findstr "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 . . .
cscript /nologo /e:javascript "%~f0" || goto :error cscript /nologo /e:javascript "%~f0" || goto :error
exit /b exit /b
:error :error
echo. echo.
echo Error: Administrator privileges elevation failed, echo Error: Administrator privileges elevation failed,
echo please manually run this script as administrator. echo please manually run this script as administrator.
echo. echo.
goto :end goto :end
:admin :admin
pushd "%~dp0" pushd "%~dp0"
dnscrypt-proxy.exe -service stop dnscrypt-proxy.exe -service stop
dnscrypt-proxy.exe -service start dnscrypt-proxy.exe -service start
popd popd
echo. echo.
echo Thank you for using DNSCrypt-Proxy! echo Thank you for using DNSCrypt-Proxy!
:end :end
set /p =Press [Enter] to exit . . . set /p =Press [Enter] to exit . . .
exit /b */ exit /b */
// JScript, restart batch script as administrator // JScript, restart batch script as administrator
var objShell = WScript.CreateObject('Shell.Application'); var objShell = WScript.CreateObject('Shell.Application');
var ComSpec = WScript.CreateObject('WScript.Shell').ExpandEnvironmentStrings('%ComSpec%'); var ComSpec = WScript.CreateObject('WScript.Shell').ExpandEnvironmentStrings('%ComSpec%');
objShell.ShellExecute(ComSpec, '/c ""' + WScript.ScriptFullName + '" RunAsAdmin"', '', 'runas', 1); objShell.ShellExecute(ComSpec, '/c ""' + WScript.ScriptFullName + '" RunAsAdmin"', '', 'runas', 1);

View File

@ -1,35 +1,35 @@
@set @_cmd=1 /* @set @_cmd=1 /*
@echo off @echo off
setlocal EnableExtensions setlocal EnableExtensions
title DNSCrypt-Proxy title DNSCrypt-Proxy
whoami /groups | findstr "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 . . .
cscript /nologo /e:javascript "%~f0" || goto :error cscript /nologo /e:javascript "%~f0" || goto :error
exit /b exit /b
:error :error
echo. echo.
echo Error: Administrator privileges elevation failed, echo Error: Administrator privileges elevation failed,
echo please manually run this script as administrator. echo please manually run this script as administrator.
echo. echo.
goto :end goto :end
:admin :admin
pushd "%~dp0" pushd "%~dp0"
dnscrypt-proxy.exe -service stop dnscrypt-proxy.exe -service stop
dnscrypt-proxy.exe -service uninstall dnscrypt-proxy.exe -service uninstall
popd popd
echo. echo.
echo Thank you for using DNSCrypt-Proxy! echo Thank you for using DNSCrypt-Proxy!
:end :end
set /p =Press [Enter] to exit . . . set /p =Press [Enter] to exit . . .
exit /b */ exit /b */
// JScript, restart batch script as administrator // JScript, restart batch script as administrator
var objShell = WScript.CreateObject('Shell.Application'); var objShell = WScript.CreateObject('Shell.Application');
var ComSpec = WScript.CreateObject('WScript.Shell').ExpandEnvironmentStrings('%ComSpec%'); var ComSpec = WScript.CreateObject('WScript.Shell').ExpandEnvironmentStrings('%ComSpec%');
objShell.ShellExecute(ComSpec, '/c ""' + WScript.ScriptFullName + '" RunAsAdmin"', '', 'runas', 1); objShell.ShellExecute(ComSpec, '/c ""' + WScript.ScriptFullName + '" RunAsAdmin"', '', 'runas', 1);