Skip to content

Commit 6f240ae

Browse files
committed
Remove git repository after cloning in bin/cli.js
1 parent 86e1f16 commit 6f240ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const runCommand = command => {
1414
const repoName = process.argv[2];
1515
const gitCheckoutCommand = `git clone --depth 1 https://github.com/gulalicelik/nodejs-express-sequelize-mysql-api-boilerplate.git ${repoName}`;
1616
const installDepsCommand = `cd ${repoName} && npm install`;
17-
const rmGitRepoCommand = `cd ${repoName} && npm install`;
17+
const rmGitRepoCommand = `rm -rf .git`;
1818

1919
console.log(`Cloning the repository with name ${repoName}`);
2020
const checkedOut = runCommand(gitCheckoutCommand);

0 commit comments

Comments
 (0)