fix bug in readFile

This commit is contained in:
Kyle Spearrin 2018-08-06 10:41:52 -04:00
parent 336e4acdd0
commit 887b1f1a6d
1 changed files with 1 additions and 1 deletions

View File

@ -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;