Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Fixing requested change to index value of version_cmds_exec.

Co-Authored-By: Kyle Farris <kylefarris@gmail.com>
  • Loading branch information
JamieSlome and kylefarris authored Apr 20, 2020
1 parent 176f669 commit 8081928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ class NodeClam {
try {
await fs_access(path, fs.constants.R_OK);
version_cmds_exec = version_cmds[scanner].split(' ');
const {stdout} = await cp_execfile(version_cmds_exec[0], [version_cmds_exec[2]]);
const {stdout} = await cp_execfile(version_cmds_exec[0], [version_cmds_exec[1]]);
if (stdout.toString().match(/ClamAV/) === null) {
if (this.settings.debug_mode) console.log(`${this.debug_label}: Could not verify the ${scanner} binary.`);
return false;
Expand Down

0 comments on commit 8081928

Please sign in to comment.