about summary refs log tree commit diff
path: root/xsubpkg
diff options
context:
space:
mode:
Diffstat (limited to 'xsubpkg')
-rwxr-xr-xxsubpkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/xsubpkg b/xsubpkg
index 0a2f48e..1cb9066 100755
--- a/xsubpkg
+++ b/xsubpkg
@@ -2,5 +2,5 @@
 # xsubpkg PKG - lists all subpackages of a package
 
 PKG=$1
-cd `xdistdir`
-find -L srcpkgs -samefile srcpkgs/"$PKG"/template | cut -d/ -f 2
+cd $(xdistdir)
+find -L srcpkgs -maxdepth 2 -samefile srcpkgs/"$PKG"/template | cut -d/ -f 2