Skip to content

Commit db0b86e

Browse files
author
Sheldon Rupp
authored
Clean up the rest of the files on uninstall.
Remove the following files on uninstall: - `node_modules/` folder - `nodeout` file
1 parent 5280af2 commit db0b86e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

node.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ function node_uninstall() {
5454
}
5555
echo "Unnstalling Node.js:\n";
5656
passthru("rm -rf " . NODE_DIR . " nodepid", $ret);
57+
passthru("rm -rf node_modules", $ret);
58+
passthru("rm -rf nodeout", $ret);
5759
echo $ret === 0 ? "Done.\n" : "Failed. Error: $ret\n";
5860
}
5961

0 commit comments

Comments
 (0)