From f9dd36c1c0d83eec28a7b3401690a9db65b9424d Mon Sep 17 00:00:00 2001 From: Thomas Orozco Date: Tue, 5 May 2015 22:02:08 +0200 Subject: [PATCH] Don't fail build if logging contents fails --- ci/run_build.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ci/run_build.sh b/ci/run_build.sh index 587584c..102072f 100755 --- a/ci/run_build.sh +++ b/ci/run_build.sh @@ -36,7 +36,12 @@ mkdir -p "${DIST_DIR}" cp "${BUILD_DIR}"/tini{,*.rpm,*deb} "${DIST_DIR}" # Quick audit -echo "Contents for RPM:" -rpm -qlp "${DIST_DIR}/tini"*.rpm -echo "Contents for DEB:" -dpkg --contents "${DIST_DIR}/tini"*deb +if which rpm; then + echo "Contents for RPM:" + rpm -qlp "${DIST_DIR}/tini"*.rpm +fi + +if which dpkg; then + echo "Contents for DEB:" + dpkg --contents "${DIST_DIR}/tini"*deb +fi