Skip to main content

Module script_runner

Module script_runner 

Source

Structs§

ScriptResult
ScriptRunner

Functions§

check_interpreter
Determines the interpreter for a script by reading its shebang line or inferring from the file extension, then checks against the whitelist. Returns the absolute path to the interpreter to prevent PATH hijacking.
resolve_interpreter_absolute
Resolve a bare interpreter name to its canonical absolute path by walking PATH.