diff --git a/src/checkupdates.sh.in b/src/checkupdates.sh.in index 024243c..ae8197c 100644 --- a/src/checkupdates.sh.in +++ b/src/checkupdates.sh.in @@ -34,7 +34,7 @@ ${myname} v${myver} Safely print a list of pending updates -Usage: ${myname} [options] +Usage: ${myname} [options] [targets...] Options: -d, --download download pending updates to the pacman cache. @@ -93,7 +93,7 @@ if ! fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> / error 'Cannot fetch updates' exit 1 fi -mapfile -t updates < <(pacman -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]') +mapfile -t updates < <(pacman -Qu --dbpath "$CHECKUPDATES_DB" -- "$@" 2> /dev/null | grep -v '\[.*\]') if (( ${#updates[@]} )); then if (( $QUIET )); then -- 2.22.0