Skip to content

Instantly share code, notes, and snippets.

@dvtate
Last active March 12, 2017 08:28
Show Gist options
  • Save dvtate/5162d14b10192b62f65ab58e45eee17a to your computer and use it in GitHub Desktop.
Save dvtate/5162d14b10192b62f65ab58e45eee17a to your computer and use it in GitHub Desktop.
people like to click on things.... Holy shit M$ batch sucks
@if "%DEBUG%" == "" @echo off
echo I had to make this to run the command for me...
echo Starting GRIP...
choice /c:ync /n /m "Run offline? (y/N/cancel)"
if errorlevel 3 exit
if errorlevel == 1 (
echo running using previous build...
gradlew.bat :ui:run --offline
) else (
echo downloading and then running...
gradlew.bat :ui:run
)
echo "Job completed, Have a good day :)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment