evophp 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/install-dependencies.js +2 -0
- package/new-plugin.js +1 -3
- package/package.json +1 -1
package/install-dependencies.js
CHANGED
package/new-plugin.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
console.log("new-plugin.js is being executed...");
|
|
4
|
-
|
|
5
3
|
const { execSync } = require('child_process');
|
|
6
4
|
const path = require('path');
|
|
7
5
|
const fs = require('fs');
|
|
@@ -120,7 +118,7 @@ async function cloneRepository(author, itemName, cloneDir) {
|
|
|
120
118
|
try {
|
|
121
119
|
// Ensure directories do not exist before cloning
|
|
122
120
|
if (fs.existsSync(cloneDir)) {
|
|
123
|
-
console.log(`The
|
|
121
|
+
console.log(`The plugin "${itemName}" already exists in the directory. Exiting.`);
|
|
124
122
|
process.exit(0);
|
|
125
123
|
}
|
|
126
124
|
|