From 9475f2138405d9b3848fe9c08815ec5490a1fdcd Mon Sep 17 00:00:00 2001 From: Styrsven Date: Wed, 6 Dec 2017 17:45:55 +0100 Subject: xoptdiff: treat multiple package names on the command line --- xoptdiff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xoptdiff') diff --git a/xoptdiff b/xoptdiff index 205f433..edcb9ad 100755 --- a/xoptdiff +++ b/xoptdiff @@ -9,10 +9,10 @@ if [ "$1" = -q ]; then q= fi -if [ $# = 0 ]; then +if [ $# -eq 0 ]; then xbps-query -p build-options -s '' | sed 's/^\([^ ]*\)-.*/\1/' else - echo "$@" + echo "$@" | tr ' ' '\n' fi | while read pkg; do comm -23 <(./xbps-src show-options $pkg 2>/dev/null | sed -n '/\(ON\)/s/ *\([^ ]*\):.*/\1/p; -- cgit 1.4.1