Only create package diff if start and end exist 42/11242/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 13 Jun 2018 18:22:15 +0000 (11:22 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 13 Jun 2018 18:22:15 +0000 (11:22 -0700)
Issue: RELENG-798
Change-Id: I01b513073b720c7fdabf1638684af9c27eda9f8a
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
shell/package-listing.sh

index 266dbbe..b2afe33 100644 (file)
@@ -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