scripts: feeds: Don’t hardcode IS_TTY openwrt-23.05
authorErnestas Kulik <[email protected]>
Wed, 12 Nov 2025 08:16:30 +0000 (10:16 +0200)
committerChristian Marangi <[email protected]>
Wed, 12 Nov 2025 11:07:24 +0000 (12:07 +0100)
commitfd7b88447c4a001ae16b5ac4e7d0b595bbfb615e
treef8b5b682c458512a26cb92f173e070f824ccea6f
parent6cd22322986235b0b756f7e8646d48129b423f0a
scripts: feeds: Don’t hardcode IS_TTY

When building in environments that set IS_TTY, the feeds script does not
honor it and passes a hardcoded value to scan.mk, causing unwanted
control characters to appear in stdout.

This commit addresses the issue by checking IS_TTY and MAKE_TERMOUT
variables and uses their values if defined.

Closes #8039

Signed-off-by: Ernestas Kulik <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20743
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit fd7e43d429a370665795fb14c859c046c761e4e9)
scripts/feeds