From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] make.sh: Suppress 'ls :cannot access *.bz2'-message Date: Mon, 25 May 2020 10:26:09 +0100 Message-ID: <2532D20A-29BC-44DD-A22A-35DFD9205938@ipfire.org> In-Reply-To: <20200524221350.17476-1-matthias.fischer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8519461728132214761==" List-Id: --===============8519461728132214761== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reviewed-by: Michael Tremer > On 24 May 2020, at 23:13, Matthias Fischer = wrote: >=20 > The message "ls: cannot access '*.bz2': No such file or directory" comes > from the 'ls' command prior to creating the *.md5-files for *.bz2, *.img.xz > and *.iso files. >=20 > But on most builds we have especially no more bzip2 compressed images anymo= re. >=20 > This message can usually be ignored and is just irritating. >=20 > Signed-off-by: Matthias Fischer > --- > make.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/make.sh b/make.sh > index 4acce807f..2e8faa38d 100755 > --- a/make.sh > +++ b/make.sh > @@ -1707,7 +1707,7 @@ buildpackages() { > # remove not useable iso on armv5tel (needed to build flash images) > [ "${BUILD_ARCH}" =3D "armv5tel" ] && rm -rf *.iso >=20 > - for i in `ls *.bz2 *.img.xz *.iso`; do > + for i in $(ls *.bz2 *.img.xz *.iso 2>/dev/null); do > md5sum $i > $i.md5 > done > cd $PWD > --=20 > 2.18.0 >=20 --===============8519461728132214761==--