fix: check app directory when creating a new app
This commit is contained in:
3 files changed
+68
-3
No files matched your search
@@ -27,7 +27,7 @@ func CommandClone(oldAppName string, newAppName string, skipDeploy bool, ignoreE
|
||||
return err
|
||||
}
|
||||
|
||||
if err := appExists(newAppName); err == nil {
|
||||
if appNameTaken(newAppName) {
|
||||
if ignoreExisting {
|
||||
common.LogWarn("Name is already taken")
|
||||
return nil
|
||||
@@ -178,7 +178,7 @@ func CommandRename(oldAppName string, newAppName string, skipDeploy bool) error
|
||||
return err
|
||||
}
|
||||
|
||||
if err := appExists(newAppName); err == nil {
|
||||
if appNameTaken(newAppName) {
|
||||
return errors.New("Name is already taken")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user