From 887b1f1a6d0f6b022d0184f069ae1c3cfe911333 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 6 Aug 2018 10:41:52 -0400 Subject: [PATCH] fix bug in readFile --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 48e282482b..846014e42b 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -22,7 +22,7 @@ export class CliUtils { let p: string = null; if (input !== null && input !== '') { const osInput = path.join(input); - if (osInput.indexOf(path.sep) !== 0) { + if (osInput.indexOf(path.sep) === -1) { p = path.join(process.cwd(), osInput); } else { p = osInput;