From 5796c41d5c6af15b374d0b313070ad23b3ad9203 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 18 May 2022 12:40:47 +0200 Subject: [PATCH] remixd: use default folder --- libs/remixd/src/bin/remixd.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/remixd/src/bin/remixd.ts b/libs/remixd/src/bin/remixd.ts index d315b44b8e..a7ad050ba6 100644 --- a/libs/remixd/src/bin/remixd.ts +++ b/libs/remixd/src/bin/remixd.ts @@ -85,6 +85,8 @@ function errorHandler (error: any, service: string) { console.log('\x1b[33m%s\x1b[0m', '[WARN] You may now only use IDE at ' + program.remixIde + ' to connect to that instance') } + if (!program.sharedFolder) program.sharedFolder = process.cwd() // if no specified, use the current folder + if (program.sharedFolder && existsSync(absolutePath('./', program.sharedFolder))) { console.log('\x1b[33m%s\x1b[0m', '[WARN] Any application that runs on your computer can potentially read from and write to all files in the directory.') console.log('\x1b[33m%s\x1b[0m', '[WARN] Symbolic links are not forwarded to Remix IDE\n')