vid/bin/ensure-scoop.cmd

7 lines
213 B
Batchfile
Raw Normal View History

2022-03-08 23:31:33 +08:00
@echo off
setlocal
REM ensure-scoop command-name choco-package-name args
where %1 2>nul >nul
if errorlevel 1 (call scoop install %2 & call v-choco-refreshenv)
set _name_=%1
call %_name_% %3 %4 %5 %6 %7 %8 %9