1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

fix bug in readFile

This commit is contained in:
Kyle Spearrin 2018-08-06 10:41:52 -04:00
parent 336e4acdd0
commit 887b1f1a6d

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;