about summary refs log tree commit diff
path: root/xpkg
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-04-17 13:10:05 +0200
committerLeah Neukirchen <leah@vuxu.org>2019-04-17 13:12:18 +0200
commitf4a24c2bf9bcffa9a84f82efafebe3639e44f1a0 (patch)
treece0d2ac52b040952b4b61bde48298a3569c9f2e9 /xpkg
parent56bd7bdadf7a59655f0fd8978322e4c7e0abcea1 (diff)
downloadxtools-f4a24c2bf9bcffa9a84f82efafebe3639e44f1a0.tar.gz
xtools-f4a24c2bf9bcffa9a84f82efafebe3639e44f1a0.tar.xz
xtools-f4a24c2bf9bcffa9a84f82efafebe3639e44f1a0.zip
xpkg: add -r rootdir v0.56
Diffstat (limited to 'xpkg')
-rwxr-xr-xxpkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/xpkg b/xpkg
index 13f34df..08002f7 100755
--- a/xpkg
+++ b/xpkg
@@ -7,10 +7,11 @@ filter1='s/^...\? //'
 filter2='s/-[^- ]* .*//'
 mode="--search="
 
-while getopts R:vVmOHDLa flag; do
+while getopts R:r:vVmOHDLa flag; do
 	case "$flag" in
 		D) exec comm -23 <(xpkg | sort) <(xpkg -a | sort);;
 		L) mode="--regex -p repository -s /"; filter0='/:\/\//d';;
+		r) flags="$flags -r $OPTARG";;
 		R) flags="$flags -i --repository=$OPTARG";;
 		m|O|H) mode="-$flag"; filter0=; filter1=; filter2='s/-[^-]*$//';;
 		a) flags="$flags -R"; filter0=;;