Skip to content

Commit

Permalink
use path.relative() to detect local AVA installation
Browse files Browse the repository at this point in the history
  • Loading branch information
vdemedes committed Aug 10, 2016
1 parent 40b4bcd commit a1cdf14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var debug = require('debug')('ava');
var resolveCwd = require('resolve-cwd');
var localCLI = resolveCwd('ava/cli');

if (localCLI && localCLI !== __filename) {
if (localCLI && path.relative(localCLI, __filename) !== '') {
debug('Using local install of AVA');
require(localCLI);
return;
Expand Down

0 comments on commit a1cdf14

Please sign in to comment.