fix
This commit is contained in:
parent
1e3d411456
commit
b8aa7140ad
5
index.js
5
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 ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user