From b8aa7140adbcd03fea72054c428bcd0b04e26f7a Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 15 Jan 2020 14:46:10 +0100 Subject: [PATCH] fix --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e3101d1..16fe4da 100644 --- a/index.js +++ b/index.js @@ -31,12 +31,13 @@ function main () { } const snippet = require (`./snippets/${template}/index.js`); + const folder = process.cwd(); - if (!snippet.assert (process.cwd, args)) { + if (!snippet.assert (folder, args)) { console.log ('snipped rejected arguments'); return; } - snippet.run (process.cwd, args); + snippet.run (folder, args); } main ();