From ccb5d6e372e0ec7aab95af84217ee300c314d299 Mon Sep 17 00:00:00 2001 From: Arvid Lunnemark Date: Mon, 11 Apr 2022 10:26:59 -0400 Subject: [PATCH] mkdir --- gui/src/main/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/src/main/main.ts b/gui/src/main/main.ts index 9979255b..6c58b910 100644 --- a/gui/src/main/main.ts +++ b/gui/src/main/main.ts @@ -55,6 +55,10 @@ const startDaemonIfNeeded = async (pkgPath: string) => { // first copy the CLI const cliPath = path.join(pkgPath, "Resources", "anysphere"); // ln -sf link it! + const mkdir = await exec(`mkdir -p /usr/local/bin`); + if (mkdir.stderr) { + process.stderr.write(mkdir.stderr); + } const clilink = await exec(`ln -sf ${cliPath} /usr/local/bin/anysphere`); if (clilink.stderr) { process.stderr.write(clilink.stderr);