From c46153413109e5452ff8449d3bf9602ff4427236 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 1 Oct 2014 14:15:16 +0200 Subject: xsubpkg: replace `...` by $(...); small performance improvement. --- xsubpkg | 4 ++-- 1 file 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 -- cgit 1.4.1