on master help sign in
Prevent batcat warning from being in output of info.sh
0cb884dEthan P
diagnostics/info.sh+5
@@ -217,12 +217,17 @@ _run_module() {
217
217
218# Tell the user if their executable isn't named "bat".
218# Tell the user if their executable isn't named "bat".
219if [[ "$BAT" != "bat" ]] && [[ "$1" != '-y' ]]; then
219if [[ "$BAT" != "bat" ]] && [[ "$1" != '-y' ]]; then
220+ trap '_tput rmcup; exit 1' INT
221+ _tput smcup
222+ _tput clear
223+ _tput cup 0 0
220 _tput setaf 1
224 _tput setaf 1
221 printf "The %s executable on your system is named '%s'.\n%s\n" "bat" "$BAT" \
225 printf "The %s executable on your system is named '%s'.\n%s\n" "bat" "$BAT" \
222 "If your issue is related to installation, please check that this isn't the issue."
226 "If your issue is related to installation, please check that this isn't the issue."
223 _tput sgr0
227 _tput sgr0
224 printf "Press any key to continue...\n"
228 printf "Press any key to continue...\n"
225 read -rsn1
229 read -rsn1
230+ _tput rmcup
226fi
231fi
227
232
228# Ask for consent.
233# Ask for consent.