mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
fix bug in readFile
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user