Skip to content

Commit

Permalink
🚑 Regression for 2019 products
Browse files Browse the repository at this point in the history
fix #131
  • Loading branch information
bchatard committed Apr 29, 2020
1 parent 33787a4 commit ef18fa3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions doc/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# Troubleshooting

- ["Can't find application path for xxx"](#cant-find-application-path-for)
- [NVM](#nvm)

---

## Can't find application path for

If you get the message "Can't find application path for <Product Name>".

Try to check the following steps:

- Shell script exists in your `$PATH`?
- Shell script works via command line?

If every works fine please, add the content of your bin in the issue (`cat $(which <shell_script>)`)

## NVM

If you get this message: "Couldn't find the `node` binary".
Expand Down
2 changes: 1 addition & 1 deletion src/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const getApplicationPath = (product) => {
const binContent = fs.readFileSync(product.binPath, { encoding: "UTF-8" });

// Toolbox case
const pattern = new RegExp('open -(n)?a "(.*)" (--args)? "\\$@"');
const pattern = new RegExp('open -(n)?a "(.*)"( --args)? "\\$@"');
const match = pattern.exec(binContent);
const matchLength = match ? match.length : 0;

Expand Down

0 comments on commit ef18fa3

Please sign in to comment.