updates 173 B

123456789
  1. #!/bin/bash
  2. updates=$(xbps-install -S -un | cut -d' ' -f2 | sort | uniq -c | xargs)
  3. if [ -z "$updates" ]; then
  4. echo "Fully Updated"
  5. else
  6. echo " $updates""s"
  7. fi