X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpackage-listing.sh;h=82ee902bffb424bd95997c6b6d635c8013b222a9;hb=47714de72c423cbdc52908dad1c7ef29e2d0fd28;hp=266dbbe7e6bd54ff326210e0c54f0e3adc1d543a;hpb=a57c991b2313e959dc3269199749a36cde5e8407;p=releng%2Fglobal-jjb.git diff --git a/shell/package-listing.sh b/shell/package-listing.sh index 266dbbe7..82ee902b 100644 --- a/shell/package-listing.sh +++ b/shell/package-listing.sh @@ -47,9 +47,10 @@ case "${OS_FAMILY}" in ;; esac -if [ -f "${START_PACKAGES}" ] +if ( [ -f "${START_PACKAGES}" ] && [ -f "${END_PACKAGES}" ] ) then - diff "${START_PACKAGES}" "${END_PACKAGES}" > "${DIFF_PACKAGES}" + # ` || true` Ignore exit code because diff exits 1 when there is a diff + diff "${START_PACKAGES}" "${END_PACKAGES}" > "${DIFF_PACKAGES}" || true fi # If running in a Jenkins job, then copy the created files to the archives