Skip to content

Commit

Permalink
Fix syntax error for 'change directory' on Unix/Linux/macOS (micronau…
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasschaefer authored Dec 22, 2020
1 parent c7e1ef1 commit 096c1a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main/src/main/js/launch/src/components/NextSteps/NextSteps.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ const NextSteps = ({
}, [info.type, cloneUrl, name])

const cdCommand = useMemo(() => {
const win = `cd ${name}`
const nix = `./cd ${name}`
const cd = `cd ${name}`
return {
action: 'cd into the project',
cmd: { [OS_NIX]: nix, [OS_WINDOWS]: win },
cmd: {
[OS_NIX]: cd,
[OS_WINDOWS]: cd,
},
}
}, [name])

Expand Down

0 comments on commit 096c1a1

Please sign in to comment.