shifter --walk not "requireable" #42

Closed
ryanvanoss opened this Issue Nov 1, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

ryanvanoss commented Nov 1, 2012

The walk task uses which and will throw an exception if shifter is not available on the path.

You should be able to try/catch the which call, or ignore it altogether, and fallback with something like:

var binPath = path.join(__dirname, '..', '..', '.bin', 'shifter');

if (process.platform === 'win32') {
  binPath += '.cmd';
}

davglass was assigned Nov 1, 2012

Contributor

ryanvanoss commented Nov 1, 2012

Closing. We can track this through the pull request: #43

ryanvanoss closed this Nov 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment