summary refs log tree commit diff
path: root/xsubpkg
diff options
context:
space:
mode:
authorEnno Boland <g@s01.de>2014-10-01 14:15:16 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-10-10 16:44:40 +0200
commitc46153413109e5452ff8449d3bf9602ff4427236 (patch)
tree24ae413168e581af44787d23f2f02817520b8c17 /xsubpkg
parent5fc5e16300332f37352cc9e249429de4708f538c (diff)
downloadxtools-c46153413109e5452ff8449d3bf9602ff4427236.tar.gz
xtools-c46153413109e5452ff8449d3bf9602ff4427236.tar.xz
xtools-c46153413109e5452ff8449d3bf9602ff4427236.zip
xsubpkg: replace `...` by $(...); small performance improvement.
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