aboutsummaryrefslogtreecommitdiff
path: root/src/create.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/create.lua')
-rw-r--r--src/create.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/create.lua b/src/create.lua
index 19ba7e8..e4bb202 100644
--- a/src/create.lua
+++ b/src/create.lua
@@ -12,7 +12,7 @@ return function()
local path = manager.get(args.template) or Path:new(args.template)
- if not path:exists() then
+ if not path:exists() and not path:is_directory() then
error('template does not exist.')
end