#!/usr/bin/env bash if command -v pacman -Qu > /dev/null; then n_updates=$(checkupdates | wc -l) if [[ n_updates -gt 150 ]]; then color='red' elif [[ n_updates -gt 50 ]]; then color='yellow' else color='gray' fi echo " $n_updates" fi