Skip to content

Commit 45296fb

Browse files
author
Arthur TOledo
committed
Correct path init libreoffice
1 parent 31a7c42 commit 45296fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "convert-multiple-files",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Convert files to other types",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const convert = async (pathFile: string, extOutput: string, outputDir: st
66
const extension = path.extname(pathFile);
77
const fileName = path.basename(pathFile, extension);
88
const fullName = path.basename(pathFile);
9-
const convertCommandLinux = `${path.resolve(__dirname, 'instdir', 'program', 'soffice.bin')} --headless --norestore --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --convert-to ${extOutput} --outdir ${outputDir} ${pathFile}`;
9+
const convertCommandLinux = `${path.resolve(__dirname, 'utils', 'instdir', 'program', 'soffice.bin')} --headless --norestore --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --convert-to ${extOutput} --outdir ${outputDir} ${pathFile}`;
1010

1111
if (!fullName.match(/\.(doc|docx|pdf|odt)$/)) {
1212
throw new Error('Invalid file format, see the documentation for more information.');

0 commit comments

Comments
 (0)