diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2023-03-13 07:34:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 07:34:41 -0400 |
commit | bb3cbfcb41505b3cd77abccdecfe548f8ebd0f7f (patch) | |
tree | 2b02702d37feb2f538bb99c0f51a85fc94fa1f39 /system | |
parent | 5ee397eab6de0349ce3e75d09fd2d1cc35bf6b29 (diff) |
Don’t try to use tput in edit-config unless it’s installed. (#14705)
Diffstat (limited to 'system')
-rwxr-xr-x | system/edit-config | 2 |
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 |