mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
license agreement added to the setup.
This commit is contained in:
parent
6ae8464e6d
commit
cea0f4c263
3 changed files with 24 additions and 0 deletions
scripts/windows/coco-dev-setup/batch
5
scripts/windows/coco-dev-setup/batch/ask_question.bat
Executable file
5
scripts/windows/coco-dev-setup/batch/ask_question.bat
Executable file
|
@ -0,0 +1,5 @@
|
|||
set /p res="%1 [Y/N]: "
|
||||
set "result=unset"
|
||||
if "%res%"=="Y" (set "result=true")
|
||||
if "%res%"=="y" (set "result=true")
|
||||
if "%result%"=="unset" (set "result=false")
|
|
@ -13,4 +13,9 @@ call get_config copyright
|
|||
echo Welcome to the automated Installation of the CodeCombat Dev. Environment!
|
||||
echo v%version% authored by %author% and published by %copyright%.
|
||||
|
||||
call print_seperator
|
||||
|
||||
call sign_license
|
||||
if "%result%"=="false" (exit)
|
||||
|
||||
endlocal
|
14
scripts/windows/coco-dev-setup/batch/sign_license.bat
Executable file
14
scripts/windows/coco-dev-setup/batch/sign_license.bat
Executable file
|
@ -0,0 +1,14 @@
|
|||
echo In order to continue the installation of the developers environment
|
||||
echo you will have to read and agree with the following license:
|
||||
call print_dashed_seperator
|
||||
|
||||
call print_license
|
||||
call print_dashed_seperator
|
||||
|
||||
call ask_question "Have you read the license and do you agree with it?"
|
||||
call print_dashed_seperator
|
||||
|
||||
if "%result%"=="false" (
|
||||
echo This setup can't happen without an agreement.
|
||||
set /p res="Installation and Setup of the CodeCombat environment is cancelled."
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue