forked from mirrors/nixpkgs
findTarballs: Take nullglob into account
This commit is contained in:
parent
9b014b3642
commit
2d498a3c1c
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue