Don’t try to use tput in edit-config unless it’s installed. (#14705)
Austin S. Hemmelgarn committed
Mar 13, 2023 at 07:34 UTC
bb3cbfcb41505b3cd77abccdecfe548f8ebd0f7f
1 file changed
+1
-1
system/edit-config
+1
-1
@@ -163,7 +163,7 @@ list_files() {
163
check_directories
164
handle_container
165
166
- if test -t; then
166
+ if test -t && command -v tput > /dev/null 2>&1; then
167
width="$(tput cols)"
168
fi
169