From: Andrew Grimberg Date: Wed, 13 Jun 2018 18:22:15 +0000 (-0700) Subject: Only create package diff if start and end exist X-Git-Tag: v0.21.0~13 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F11242%2F1;p=releng%2Fglobal-jjb.git Only create package diff if start and end exist Issue: RELENG-798 Change-Id: I01b513073b720c7fdabf1638684af9c27eda9f8a Signed-off-by: Andrew Grimberg --- diff --git a/shell/package-listing.sh b/shell/package-listing.sh index 266dbbe7..b2afe33a 100644 --- a/shell/package-listing.sh +++ b/shell/package-listing.sh @@ -47,7 +47,7 @@ case "${OS_FAMILY}" in ;; esac -if [ -f "${START_PACKAGES}" ] +if ( [ -f "${START_PACKAGES}" ] && [ -f "${END_PACKAGES}" ] ) then diff "${START_PACKAGES}" "${END_PACKAGES}" > "${DIFF_PACKAGES}" fi