ITADN

Last pacman-contrib update preserve pacman colors

#24Closedjlaunay 创建于 2024-01-26
J
jlaunaycommented
pacman-contrib has been [updated to 1.10.2](https://gitlab.archlinux.org/pacman/pacman-contrib/-/commit/f0c3f2b0e1af9afebfc6343b1f930ad25252eb42) changelog "Preserve pacman colors when printing the list of pending updates" You have to add ```--nocolor``` to avoid this kind of notification ``` {"text":"1","alt":"pending-updates","tooltip":"\u001b[0;1mdiscover \u001b[1;32m5.27.10-1\u001b[0m -> \u001b[1;32m5.27.10-2\u001b[0m","class":"pending-updates"} ``` ```bash function check_pacman_updates() { if [ "$1" == "online" ]; then pacman_updates=$(checkupdates --nocolor) elif [ "$1" == "offline" ]; then pacman_updates=$(checkupdates --nosync --nocolor) fi ```
关闭于 2024-04-21 1 条评论