about summary refs log tree commit diff
path: root/xoptdiff
diff options
context:
space:
mode:
authorStyrsven <sven.a.jonsson@bahnhof.se>2017-12-06 17:45:55 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-12-08 14:40:24 +0100
commit9475f2138405d9b3848fe9c08815ec5490a1fdcd (patch)
treed5bc3989b223881dae84ac822512b06a533b9d0e /xoptdiff
parent371e199398adddf9e63a44e0fc7e1e1c287d1dd0 (diff)
downloadxtools-9475f2138405d9b3848fe9c08815ec5490a1fdcd.tar.gz
xtools-9475f2138405d9b3848fe9c08815ec5490a1fdcd.tar.xz
xtools-9475f2138405d9b3848fe9c08815ec5490a1fdcd.zip
xoptdiff: treat multiple package names on the command line
Diffstat (limited to 'xoptdiff')
-rwxr-xr-xxoptdiff4
1 files changed, 2 insertions, 2 deletions
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;