mirror of
https://github.com/status-im/re-natal.git
synced 2025-02-27 11:40:28 +00:00
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…
x
Reference in New Issue
Block a user