check if directory exists before starting
This commit is contained in:
parent
30ecbb97f2
commit
4fc36f6e68
|
@ -28,6 +28,9 @@ init = (projName) ->
|
|||
projNameUs = projName.replace(camelRx, '$1_$2').toLowerCase()
|
||||
|
||||
try
|
||||
if fs.existsSync projNameHyph
|
||||
throw new Error "Directory #{ projNameHyph } already exists"
|
||||
|
||||
execSync 'type lein'
|
||||
execSync 'type pod'
|
||||
|
||||
|
|
Loading…
Reference in New Issue