Skip to main content

script_file_is_program

Function script_file_is_program 

Source
pub fn script_file_is_program(run: &[String]) -> Result<bool, ScriptLawError>
Expand description

Whether the script body is run[0] itself (non-interpreter form). Interpreter form → false (the script is read in, no executable bit needed). Invalid/empty errors out on the same criteria as check_run_law.