fix: check app directory when creating a new app

This commit is contained in:
Jose Diaz-Gonzalez committed 2026-09-24 18:25:56 -04:00
1 parent 114c6115b9
commit 1058e1f5ad
3 files changed
+68 -3

No files matched your search

+2 -2
View File
@@ -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")
}