This defaults to plain "pkg", but being able to override it is useful
for testing purposes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Looks to me like PKG_CMD isn't guaranteed to be defined here. We're already using it in two other places, but only for no-root builds; someone running src/release/scripts/mk-vmimage.sh without NO_ROOT=1 would see this break.
Can you make it ${PKG_CMD:-pkg} here, and also in the other two places where PKG_CMD is used?
Comment Actions
Well, the same is true of, say, PKG_ABI. Are there users of mk-vmimage.sh outside of release/? Maybe we should instead make it an error to invoke this script without setting PKG_CMD?
Comment Actions
Good point, it's already broken for anyone trying to run it "by hand". Let's just commit this and we can tidy things up if and when someone wants to use that script without going through the logic which initializes variables.