Skip to content

Commit

Permalink
Don't delete Kotlin Script _source_ file
Browse files Browse the repository at this point in the history
  • Loading branch information
fmagin committed Feb 7, 2025
1 parent 76f4b00 commit dcbd916
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public GhidraScript getScriptInstance(ResourceFile sourceFile, PrintWriter write

// Assuming script is in default java package, so using script's base name as class name.
File clazzFile = getClassFile(sourceFile, GhidraScriptUtil.getBaseName(sourceFile));
clazzFile.delete(); // delete the class file to force re-compile
try {
compile(sourceFile, writer); // may throw an exception
} catch (ClassNotFoundException e) {
Expand Down

0 comments on commit dcbd916

Please sign in to comment.