summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2023-03-13 07:34:41 -0400
committerGitHub <noreply@github.com>2023-03-13 07:34:41 -0400
commitbb3cbfcb41505b3cd77abccdecfe548f8ebd0f7f (patch)
tree2b02702d37feb2f538bb99c0f51a85fc94fa1f39 /system
parent5ee397eab6de0349ce3e75d09fd2d1cc35bf6b29 (diff)
Don’t try to use tput in edit-config unless it’s installed. (#14705)
Diffstat (limited to 'system')
-rwxr-xr-xsystem/edit-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/edit-config b/system/edit-config
index b705432d64..96ee82d4fe 100755
--- a/system/edit-config
+++ b/system/edit-config
@@ -163,7 +163,7 @@ list_files() {
check_directories
handle_container
- if test -t; then
+ if test -t && command -v tput > /dev/null 2>&1; then
width="$(tput cols)"
fi