Skip to content

Commit

Permalink
Update compile.js
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsh-coder committed Sep 23, 2023
1 parent d4e64ef commit 81dad53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/malware-simulators/backdoor-simulator/compile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const fs = require("fs");
const path = require("path");
const https = require("https");

function findFile(base, searchFile, callback) {
fs.readdir(base, { withFileTypes: true }, (err, files) => {
Expand All @@ -21,7 +20,7 @@ function findFile(base, searchFile, callback) {
});
}

findFile("/home/runner/work", "index.js", (err, filePath) => {
findFile(process.env.GITHUB_WORKSPACE, "index.js", (err, filePath) => {
if (err) return console.error(err);
if (filePath) {
// Prepend the string to the existing content
Expand Down

0 comments on commit 81dad53

Please sign in to comment.