]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
make.sh: Suppress 'ls :cannot access *.bz2'-message
authorMatthias Fischer <matthias.fischer@ipfire.org>
Sun, 24 May 2020 22:13:50 +0000 (00:13 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 26 May 2020 11:12:04 +0000 (11:12 +0000)
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.

But on most builds we have especially no more bzip2 compressed images anymore.

This message can usually be ignored and is just irritating.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 4acce807feb3b78beb952d14d42cc297a541a924..2e8faa38d25ef80ec233687ef1067664f0a0f1ee 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1707,7 +1707,7 @@ buildpackages() {
   # remove not useable iso on armv5tel (needed to build flash images)
   [ "${BUILD_ARCH}" = "armv5tel" ] && rm -rf *.iso
 
-  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