Skip to content

Commit

Permalink
make absolute output dirs work
Browse files Browse the repository at this point in the history
  • Loading branch information
f0e committed Jan 17, 2024
1 parent aaa574a commit bf1fb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mpv-cut/make_cuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async function main() {

if (!isDir(indir)) quit('Input directory is invalid');

const outdir = path.join(indir, outdir_raw);
const outdir = path.resolve(indir, outdir_raw);

if (!isDir(outdir)) {
if (!isSubdirectory(indir, outdir)) quit('Output directory is invalid');
Expand Down

0 comments on commit bf1fb22

Please sign in to comment.