fix broken adapters

This commit is contained in:
g1nt0ki
2023-08-29 15:43:09 +02:00
parent 08d2e34463
commit 7a78ae15a8
6 changed files with 10 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ inquirer.registerPrompt('fuzzypath', require('inquirer-fuzzy-path'))
console.log('Starting directory: ' + process.cwd());
const args = process.argv.slice(2); // The first two elements are 'node' and the script filename
const NEW_DIR = './projects/' + args[0]
const NEW_DIR = './projects/' + (args[0] ?? '')
try {
process.chdir(NEW_DIR);