From a1cdf14b5fd1dd996bff6eb7c148dc926503a076 Mon Sep 17 00:00:00 2001 From: vdemedes Date: Wed, 10 Aug 2016 23:21:05 +0300 Subject: [PATCH] use path.relative() to detect local AVA installation --- cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.js b/cli.js index 94cb33ab84..5d53ed1ae7 100755 --- a/cli.js +++ b/cli.js @@ -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;