mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-10-16 23:08:32 +00:00
Switched from execFile
to spawn
.
So that we can add guards against whitespaces in the path. Also cleaned up the code a bit. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -94,7 +94,7 @@ export class SketchesServiceImpl implements SketchesService {
|
||||
|
||||
const sketchDir = path.join(parent, sketchName)
|
||||
const sketchFile = path.join(sketchDir, `${sketchName}.ino`);
|
||||
fs.mkdirSync(sketchDir);
|
||||
fs.mkdirpSync(sketchDir);
|
||||
fs.writeFileSync(sketchFile, `
|
||||
void setup() {
|
||||
// put your setup code here, to run once:
|
||||
|
Reference in New Issue
Block a user