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:
parent
336e4acdd0
commit
887b1f1a6d
@ -22,7 +22,7 @@ export class CliUtils {
|
|||||||
let p: string = null;
|
let p: string = null;
|
||||||
if (input !== null && input !== '') {
|
if (input !== null && input !== '') {
|
||||||
const osInput = path.join(input);
|
const osInput = path.join(input);
|
||||||
if (osInput.indexOf(path.sep) !== 0) {
|
if (osInput.indexOf(path.sep) === -1) {
|
||||||
p = path.join(process.cwd(), osInput);
|
p = path.join(process.cwd(), osInput);
|
||||||
} else {
|
} else {
|
||||||
p = osInput;
|
p = osInput;
|
||||||
|
Loading…
Reference in New Issue
Block a user