Skip to content

Commit

Permalink
Fix macOS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Pupix committed Jan 27, 2019
1 parent d47ff55 commit 5281804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports.getLCUPathFromProcess = () => {
return new Promise(resolve => {
const command = IS_WIN ?
`WMIC PROCESS WHERE name='LeagueClientUx.exe' GET ExecutablePath` :
`ps x -o comm= | grep 'LeagueClientUx'`;
`ps x -o comm= | grep 'LeagueClientUx$'`;

cp.exec(command, (err, stdout, stderr) => {
if (err || !stdout || stderr) {
Expand Down

0 comments on commit 5281804

Please sign in to comment.