diff options
| author | ruki <[email protected]> | 2016-07-29 18:29:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-07-29 18:30:07 +0800 |
| commit | 928a7507772955797f6cbc7ce950354d91e28fcf (patch) | |
| tree | 338bafba32901b8e50e1b070d8c3a900d891c52c | |
| parent | 001fb494ea8333ae2499875bd6ddf3ebcf049bc2 (diff) | |
add noinput argument for install.bat
| -rw-r--r-- | install.bat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install.bat b/install.bat index 38b61548a..b9c245c4a 100644 --- a/install.bat +++ b/install.bat @@ -28,7 +28,7 @@ if %PROCESSOR_ARCHITECTURE%==x86_64 ( set xmake_dir_install_default=C:\Program Files\xmake
)
echo please input the install directory
-set /p xmake_dir_install=(default: %xmake_dir_install_default%):
+if not "%1" == "noinput" set /p xmake_dir_install=(default: %xmake_dir_install_default%):
if "%xmake_dir_install%"=="" set xmake_dir_install=%xmake_dir_install_default%
if exist "%xmake_dir_install%" rmdir /s /q "%xmake_dir_install%"
if not exist "%xmake_dir_install%" mkdir "%xmake_dir_install%"
|
