Skip to content

Commit

Permalink
Removed prepended slash so that path.resolve works as expected. This …
Browse files Browse the repository at this point in the history
…makes `sails lift` use the locally installed Sails if available.
  • Loading branch information
sgress454 committed Feb 25, 2014
1 parent 83f4b94 commit 69aaa90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/sails-lift.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = function () {

// Use the app's local Sails in `node_modules` if one exists
var appPath = process.cwd();
var localSailsPath = path.resolve(appPath, '/node_modules/sails');
var localSailsPath = path.resolve(appPath, 'node_modules/sails');

// But first make sure it'll work...
if ( Sails.isLocalSailsValid(localSailsPath, appPath) ) {
Expand Down

0 comments on commit 69aaa90

Please sign in to comment.