Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Fix logic error.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossR committed Jun 30, 2018
1 parent 1979cca commit 6da1f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/src/Platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const isAddedToPath = () => {
const currentLinkPath = fs.readlinkSync(getLinkPath())

// Temporary guard to check if the old script has been linked to.
if (currentLinkPath.indexOf("cli/mac/oni.sh") === 0) {
if (currentLinkPath.indexOf("cli/mac/oni.sh") === -1) {
return false
}
} catch (_) {
Expand Down

0 comments on commit 6da1f7c

Please sign in to comment.