From c7b07234ed65b8c77f16c343ae3aa73e4faad4ae Mon Sep 17 00:00:00 2001 From: ChristianH99 Date: Sat, 17 Feb 2024 15:23:31 +0100 Subject: [PATCH] Fixed script as the detection wether dos2unix was installed didn't work, when it was not installed. --- build_rules_on_windows.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_rules_on_windows.bat b/build_rules_on_windows.bat index 567b274..5217418 100644 --- a/build_rules_on_windows.bat +++ b/build_rules_on_windows.bat @@ -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