This issue comes from a Codex global scan of deepmodeling/tbplas at commit 4d3652b.
Severity: Low
clean_build.sh pipes find . -name "*.so" into xargs rm. On a clean tree with no shared libraries, xargs still runs rm with no operands, causing the script to exit nonzero.
Code reference:
|
#! /bin/bash |
|
# Clean local build and so files |
|
|
|
test -d build && rm -rf build |
|
find . -name "*.so" | xargs rm |
Suggested fix: use find . -name "*.so" -delete, or xargs -r rm where GNU xargs is available.
This issue comes from a Codex global scan of deepmodeling/tbplas at commit 4d3652b.
Severity: Low
clean_build.shpipesfind . -name "*.so"intoxargs rm. On a clean tree with no shared libraries,xargsstill runsrmwith no operands, causing the script to exit nonzero.Code reference:
tbplas/scripts/clean_build.sh
Lines 1 to 5 in 4d3652b
Suggested fix: use
find . -name "*.so" -delete, orxargs -r rmwhere GNU xargs is available.