summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcreatelinks4
1 files changed, 3 insertions, 1 deletions
diff --git a/createlinks b/createlinks
index fe1ff6f..52ade34 100755
--- a/createlinks
+++ b/createlinks
@@ -36,7 +36,9 @@ for repo in ${repos[@]}; do
fi
# create file lists
- for pkg in $(find $target/$repodir -xtype f -name "*-${arch}.pkg.tar.?z"); do
+ for pkg in "$target/$repodir"/*.pkg.tar.?z; do
+ [[ -f $pkg ]] || continue
+
pkgname=$(getpkgname $pkg)
tmppkgdir=${tmp}/tmp/${repodir}/${pkgname}
mkdir -p $tmppkgdir