Skip to content

Commit cbc31b5

Browse files
committed
Safer quoting on $COLUMNS
1 parent 3b0cd94 commit cbc31b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chatgpt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ while $running; do
375375
echo "${response_data}" | glow -
376376
#echo -e "${formatted_text}"
377377
else
378-
echo -e "${CHATGPT_CYAN_LABEL}${response_data}" | fold -s -w $COLUMNS
378+
echo -e "${CHATGPT_CYAN_LABEL}${response_data}" | fold -s -w "$COLUMNS"
379379
fi
380380
add_assistant_response_to_chat_message "$(escape "$response_data")"
381381

0 commit comments

Comments
 (0)