Improve update script and add vuln check

This commit is contained in:
2025-08-08 18:19:56 +01:00
parent f1ee483b9e
commit 7f3458fe73
2 changed files with 11 additions and 2 deletions

View File

@@ -8,11 +8,15 @@ if command -v paru >/dev/null 2>&1; then
paru
printf "%b\n" "${YELLOW}[+]${NC} Removing orphaned dependencies..."
sudo pacman -Rsn $(pacman -Qdtq)
printf "%b\n" "${YELLOW}[+]${NC} Checking for config changes..."
sudo pacdiff
elif command -v pacman >/dev/null 2>&1; then
printf "%b\n" "${YELLOW}[+]${NC} Updating Arch..."
sudo pacman -Syu
printf "%b\n" "${YELLOW}[+]${NC} Removing orphaned dependencies..."
sudo pacman -Rsn $(pacman -Qdtq)
printf "%b\n" "${YELLOW}[+]${NC} Checking for config changes..."
sudo pacdiff
elif command -v apt >/dev/null 2>&1; then
printf "%b\n" "${YELLOW}[+]${NC} Updating repos..."
sudo apt-get update