scripts: feeds: Don’t hardcode IS_TTY
authorErnestas Kulik <[email protected]>
Wed, 12 Nov 2025 08:16:30 +0000 (10:16 +0200)
committerChristian Marangi <[email protected]>
Wed, 12 Nov 2025 11:05:53 +0000 (12:05 +0100)
commitfd7e43d429a370665795fb14c859c046c761e4e9
tree45228f7dfe6d7e8ba6e52db8857134b40c0213ad
parentb29cf08a1eb6af799b2bdaf5cf655532b238d2eb
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]>
scripts/feeds