From 2d498a3c1c36eb22bcf5c890f5c1094e4ca56756 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 5 Nov 2014 18:06:14 +0100 Subject: [PATCH] findTarballs: Take nullglob into account --- pkgs/build-support/release/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/release/functions.sh b/pkgs/build-support/release/functions.sh index efc4e7970cc5..877edf92728c 100644 --- a/pkgs/build-support/release/functions.sh +++ b/pkgs/build-support/release/functions.sh @@ -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"