mirror of https://github.com/sbt/sbt.git
fix: sbt init
**Problem** `sbt init` no longer works because of --allow-empty check. **Solution** Skip allow empty check for sbt init.
This commit is contained in:
parent
003e54936f
commit
7409de3c40
|
|
@ -476,6 +476,11 @@ if "%~0" == "new" (
|
|||
set sbt_new=true
|
||||
)
|
||||
)
|
||||
if "%~0" == "init" (
|
||||
if not defined SBT_ARGS (
|
||||
set sbt_new=true
|
||||
)
|
||||
)
|
||||
|
||||
if "%g:~0,2%" == "-D" (
|
||||
rem special handling for -D since '=' gets parsed away
|
||||
|
|
|
|||
Loading…
Reference in New Issue