sh: Fix non-NO_ROOT installconfig

When building without NO_ROOT, ${TAG_ARGS} is not set, which means we
pass ",config" as an install(1) argument.  Only add the config tag if
${TAG_ARGS} is defined to begin with.

Fixes:	aa730a66bc ("sh: Add config tag to /.profile")
Reported by:	bz
This commit is contained in:
Lexi Winter 2025-09-02 12:47:36 +01:00
parent 00c9ebbbc6
commit b197d2abcb

View file

@ -74,6 +74,6 @@ beforeinstallconfig:
LINKMODE=${CONFMODE}
afterinstallconfig:
${INSTALL_LINK} ${TAG_ARGS},config ${DESTDIR}/root/.profile ${DESTDIR}/.profile
${INSTALL_LINK} ${TAG_ARGS:D${TAG_ARGS},config} ${DESTDIR}/root/.profile ${DESTDIR}/.profile
.include <bsd.prog.mk>