Take the path as-is, not relative to the current dir. #43
@ -30,7 +30,7 @@ export const handler = async (argv: Arguments) => {
|
||||
|
||||
let file = null;
|
||||
if (filename) {
|
||||
file = path.join(process.cwd(), filename as string);
|
||||
file = filename as string;
|
||||
} else {
|
||||
file = 0; // stdin
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user