vid/bin/ensure-choco.cmd

7 lines
216 B
Batchfile

@echo off
setlocal
REM ensure-choco command-name choco-package-name args
where %1 2>nul >nul
if errorlevel 1 (call choco install %2 -y & call v-choco-refreshenv)
set _name_=%1
call %_name_% %3 %4 %5 %6 %7 %8 %9