Skip to content

Commit

Permalink
slightly safer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Feb 16, 2021
1 parent 8753faa commit 8ab6f14
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/registerProtocol.mac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ export async function register(editor: string) {
execSync(installCommand);
}

const gitPeekShim = path.join(
`${process.env.HOME}/Applications/git-peek.app/Contents/`,
"git-peek-shim"
);
const gitPeekShim = path.join(APP_DIR, "Contents", "git-peek-shim");

console.log("Generating AppleScript handler.");
const appleScriptCode = await generateAppleScript(gitPeekShim);
Expand Down

0 comments on commit 8ab6f14

Please sign in to comment.