diff --git a/README.md b/README.md index 8b5c6e0..957b485 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@
## Project setup -Download the [latest version](https://github.com/Sopamo/via/releases) of via and move it to `/usr/local/bin/v`. +Download the [latest version](https://github.com/Sopamo/via/releases) of via and move it to `/usr/local/bin/v`. Make sure it's executable by running `sudo chmod +x /usr/local/bin/v`. Create your first project configuration file by running `v init my-project` and follow the instructions. @@ -65,4 +65,4 @@ deno run --allow-read --allow-run --allow-env --allow-write ./src/via.ts [projec To build the binary, run: ```bash deno compile --allow-read --allow-run --allow-env --allow-write ./src/via.ts -``` \ No newline at end of file +``` diff --git a/src/via.ts b/src/via.ts index e10758f..dc07b44 100644 --- a/src/via.ts +++ b/src/via.ts @@ -89,7 +89,7 @@ const projectWideActions = ["start", "stop"] async function runCommand(cmd: string, cwd: string) { console.log(`Running ${cmd} in ${cwd}`) const p = Deno.run({ - cmd: cmd.split(" "), + cmd: ['sh', '-c', cmd], cwd, }); await p.status()