X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpackage-listing.sh;h=82ee902bffb424bd95997c6b6d635c8013b222a9;hb=10a3854d4a96bd6845d7f4791ac564cfec7cb750;hp=266dbbe7e6bd54ff326210e0c54f0e3adc1d543a;hpb=a57c991b2313e959dc3269199749a36cde5e8407;p=releng%2Fglobal-jjb.git diff --git a/shell/package-listing.sh b/shell/package-listing.sh old mode 100644 new mode 100755 index 266dbbe7..82ee902b --- 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