Skip to content

Commit

Permalink
Fixed script as the detection wether dos2unix was installed didn't wo…
Browse files Browse the repository at this point in the history
…rk, when it was not installed.
  • Loading branch information
ChristianH99 committed Feb 17, 2024
1 parent c0bc17d commit c7b0723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_rules_on_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ echo dos2unix is required to build the rules. Do you want to check if dos2unix i
set /p performCheck=Type 'y' for yes otherwise press ENTER:

if /i "%performCheck%"=="y" (
wsl dos2unix --version >nul 2>&1
if %errorlevel% neq 0 (
wsl /usr/bin/dos2unix --version > /dev/null 2>&1
if %ERRORLEVEL% NEQ 0 (
echo Installing dos2unix...
wsl sudo apt-get update
wsl sudo apt-get install dos2unix
Expand Down

0 comments on commit c7b0723

Please sign in to comment.