From 7761e3282c38f4396506937ec9a6d4d8699ecccf Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Fri, 8 Aug 2025 18:30:12 +0100 Subject: [PATCH] Improve vulnerability notifier --- install.sh | 3 +++ scripts/update | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/install.sh b/install.sh index 3444bc1f..6d9e3468 100755 --- a/install.sh +++ b/install.sh @@ -106,7 +106,10 @@ if [ $W_MAIN = "flatpak" ]; then fi if [ $W_MAIN = "vulns" ]; then + printf "%b\n" "${CYAN}[I]${NC} Packages that contain known vulnerabilities:" arch-audit + printf "\n%b\n" "${RED}[I]${NC} Packages that can be fixed by updating:" + arch-audit -u fi if [ $W_MAIN = "paru" ]; then diff --git a/scripts/update b/scripts/update index 0333f3c9..1bc1e7d8 100755 --- a/scripts/update +++ b/scripts/update @@ -10,6 +10,8 @@ if command -v paru >/dev/null 2>&1; then sudo pacman -Rsn $(pacman -Qdtq) printf "%b\n" "${YELLOW}[+]${NC} Checking for config changes..." sudo pacdiff + printf "%b\n" "${YELLOW}[+]${NC} Checking for vulnerabilities..." + arch-audit -u elif command -v pacman >/dev/null 2>&1; then printf "%b\n" "${YELLOW}[+]${NC} Updating Arch..." sudo pacman -Syu @@ -17,6 +19,8 @@ elif command -v pacman >/dev/null 2>&1; then sudo pacman -Rsn $(pacman -Qdtq) printf "%b\n" "${YELLOW}[+]${NC} Checking for config changes..." sudo pacdiff + printf "%b\n" "${YELLOW}[+]${NC} Checking for vulnerabilities..." + arch-audit -u elif command -v apt >/dev/null 2>&1; then printf "%b\n" "${YELLOW}[+]${NC} Updating repos..." sudo apt-get update