3
0
Fork 0
forked from mirrors/nixpkgs

findTarballs: Take nullglob into account

This commit is contained in:
Eelco Dolstra 2014-11-05 18:06:14 +01:00
parent 9b014b3642
commit 2d498a3c1c

View file

@ -1,8 +1,8 @@
findTarballs() {
local suffix
local suffix i
test -d "$1/tarballs/" && {
for suffix in tar.gz tgz tar.bz2 tbz2 tar.xz tar.lzma; do
ls $1/tarballs/*.$suffix 2> /dev/null
for i in $1/tarballs/*.$suffix; do echo $i; done
done | sort
}
echo "$1"