mirror of
https://github.com/status-im/re-natal.git
synced 2025-02-16 22:46:36 +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()
|
projNameUs = projName.replace(camelRx, '$1_$2').toLowerCase()
|
||||||
|
|
||||||
try
|
try
|
||||||
|
if fs.existsSync projNameHyph
|
||||||
|
throw new Error "Directory #{ projNameHyph } already exists"
|
||||||
|
|
||||||
execSync 'type lein'
|
execSync 'type lein'
|
||||||
execSync 'type pod'
|
execSync 'type pod'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user