Skip to content

Commit e632a65

Browse files
committed
local template should contain slash
1 parent 6472d86 commit e632a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/vue-init

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ if (exists(to)) {
9191

9292
function run () {
9393
// check if template is local
94-
if (exists(template)) {
94+
if (hasSlash && exists(template)) {
9595
generate(name, template, to, function (err) {
9696
if (err) logger.fatal(err)
9797
console.log()

0 commit comments

Comments
 (0)