add prompt for vanilla cmd.exe when clink not present

This commit is contained in:
David Refoua
2022-11-06 11:37:58 +03:30
parent 7c309c6a7b
commit e3d9f81e25
6 changed files with 98 additions and 56 deletions

View File

@ -32,15 +32,15 @@ exit /b
::: path <out> Sets the path env variable if required.
:::-------------------------------------------------------------------------------
if not exist "%~1" (
mkdir "%~1"
)
if not exist "%~1" (
mkdir "%~1"
)
pushd "%~1"
for /f "usebackq" %%x in ( `dir /b *.bat *.cmd 2^>nul` ) do (
%print_verbose% "Calling '%~1\%%x'..."
call "%~1\%%x"
)
popd
exit /b
pushd "%~1"
for /f "usebackq" %%x in ( `dir /b *.bat *.cmd 2^>nul` ) do (
%print_verbose% "Calling '%~1\%%x'..."
call "%~1\%%x"
)
popd
exit /b