mirror of
https://github.com/ruby/ruby.git
synced 2026-07-31 09:25:15 +08:00
The `error` variable was set on failure but never reached the exit code, so removal failures such as a locked DLL left `nmake clean` green while stale artifacts remained. Exit with `error` at the end. Since `rd /s` does not set ERRORLEVEL on failure, check the entries remaining after it instead. Also pass `/f` to `del` to remove read-only files as `rm -f` does.