This patches the foundry script to detect if the forge-std folder is empty and deletes it if so.
In ci, the caching and/or installation process breaks in such a way where the lib folder exists, but the actual files are not present. This detects that situation and removes the entire thing before reinstalling.
Testing
Check a box to describe how you tested these changes and list the steps for reviewers to test.
[ ] Ran end-to-end test, running the code as in production
[ ] New unit tests created
[x] Existing tests adequate, no new tests required
Motivation
The foundry scripts are failing in ci.
Summary
This patches the foundry script to detect if the forge-std folder is empty and deletes it if so.
In ci, the caching and/or installation process breaks in such a way where the lib folder exists, but the actual files are not present. This detects that situation and removes the entire thing before reinstalling.
Testing
Check a box to describe how you tested these changes and list the steps for reviewers to test.
Issue(s)
N/A