Merge pull request #263 from pulsar-edit/fix-installing-shell-commands-to-PATH

Fix installing shell commands to path (macOS)
This commit is contained in:
DeeDeeG 2022-12-26 14:23:21 -05:00 committed by GitHub
commit c59d08a182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,8 +60,8 @@ module.exports = class CommandInstaller {
installAtomCommand(askForPrivilege, callback) {
this.installCommand(
path.join(this.getResourcesDirectory(), 'app', 'pulsar.sh'),
this.getCommandNameForChannel('pulsar'),
path.join(this.getResourcesDirectory(), 'pulsar.sh'),
'pulsar',
askForPrivilege,
callback
);
@ -72,12 +72,11 @@ module.exports = class CommandInstaller {
path.join(
this.getResourcesDirectory(),
'app',
'apm',
'node_modules',
'.bin',
'ppm',
'bin',
'apm'
),
this.getCommandNameForChannel('apm'),
'ppm',
askForPrivilege,
callback
);