From d0b8cdbebd0fd349c90782a65c7d82a893b0db14 Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Wed, 13 Jun 2018 11:22:15 -0700 Subject: [PATCH] Only create package diff if start and end exist Issue: RELENG-798 Change-Id: I01b513073b720c7fdabf1638684af9c27eda9f8a Signed-off-by: Andrew Grimberg --- shell/package-listing.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.16.6