Move up one more directory

This commit is contained in:
Kevin Sawicki 2014-12-16 09:33:16 -08:00
parent 9126f2e45c
commit 7ee3ccb43d
3 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
"$0/../app/apm/node_modules/atom-package-manager/bin/node.exe" "$0/../app/apm/node_modules/atom-package-manager/lib/cli.js" "$@"
"$0/../../app/apm/node_modules/atom-package-manager/bin/node.exe" "$0/../../app/apm/node_modules/atom-package-manager/lib/cli.js" "$@"

View File

@ -16,7 +16,7 @@ while getopts ":fhtvw-:" opt; do
done
if [ $EXPECT_OUTPUT ]; then
"$0/../../atom.exe" "$@"
"$0/../../../atom.exe" "$@"
else
"$0/../app/apm/node_modules/atom-package-manager/bin/node.exe" "$0/atom.js" "$@"
"$0/../../app/apm/node_modules/atom-package-manager/bin/node.exe" "$0/atom.js" "$@"
fi

View File

@ -117,7 +117,7 @@ addCommandsToPath = (callback) ->
atomShCommandPath = path.join(binFolder, 'atom')
relativeAtomShPath = path.relative(binFolder, path.join(appFolder, 'resources', 'cli', 'atom.sh'))
atomShCommand = "#!/bin/sh\r\n\"$0/#{relativeAtomShPath.replace(/\\/g, '/')}\" \"$@\""
atomShCommand = "#!/bin/sh\r\n\"$0/../#{relativeAtomShPath.replace(/\\/g, '/')}\" \"$@\""
apmCommandPath = path.join(binFolder, 'apm.cmd')
relativeApmPath = path.relative(binFolder, path.join(process.resourcesPath, 'app', 'apm', 'node_modules', 'atom-package-manager', 'bin', 'apm.cmd'))
@ -125,7 +125,7 @@ addCommandsToPath = (callback) ->
apmShCommandPath = path.join(binFolder, 'apm')
relativeApmShPath = path.relative(binFolder, path.join(appFolder, 'resources', 'cli', 'apm.sh'))
apmShCommand = "#!/bin/sh\r\n\"$0/#{relativeApmShPath.replace(/\\/g, '/')}\" \"$@\""
apmShCommand = "#!/bin/sh\r\n\"$0/../#{relativeApmShPath.replace(/\\/g, '/')}\" \"$@\""
fs.writeFile atomCommandPath, atomCommand, ->
fs.writeFile atomShCommandPath, atomShCommand, ->