const GUARDED_MARKER: &str = "install.sh";
The value scripts/install.sh exports before its cargo call. Any other value, including the empty string a build script sees when the variable is absent, means the guard did not run.
scripts/install.sh