Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Kimserey
Last active July 21, 2017 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kimserey/d49d54ef539e666b0411478e23734802 to your computer and use it in GitHub Desktop.
Save Kimserey/d49d54ef539e666b0411478e23734802 to your computer and use it in GitHub Desktop.
Cmd script with FOR IN and IF statements
echo OFF
cls
set BASE_DIR=C:\Projects\
FOR %%x IN (
repo1,
repo2) DO (
IF NOT EXIST "%BASE_DIR%\%%x.Service" (
git clone https://repo-site.com/%%x.Service
)
cd %BASE_DIR%\%%x.Service
nuget restore
dotnet build
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment