if /usr/src is empty skip src component
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
head/usr.sbin/freebsd-update/freebsd-update.sh | ||
---|---|---|
219 | This is really hacky and I don't like it (although I can live with it if it's necessary evil), do we absolutely have no alternatives of hardcoding knowledge about 'src'? By the way, the negation here is unnecessary and confusing. Please reorganize the code so that ! is not used. | |
222 | If we must hardcode /usr/src knowledge, can't we just use if [ -e /usr/src/COPYRIGHT ] instead of a full ls -A? |