X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpackage-listing.sh;h=37603259aa83512e9b9f3555bf5ad0f51b9655d7;hb=e1a8dc64cfe10360ebdcadd28806adf800760ce7;hp=82ee902bffb424bd95997c6b6d635c8013b222a9;hpb=b65f75f9185892ce5980ac40a8e4f0e4a332412c;p=releng%2Fglobal-jjb.git diff --git a/shell/package-listing.sh b/shell/package-listing.sh old mode 100644 new mode 100755 index 82ee902b..37603259 --- a/shell/package-listing.sh +++ b/shell/package-listing.sh @@ -28,7 +28,7 @@ DIFF_PACKAGES=/tmp/packages_diff.txt # Swap to creating END_PACKAGES if we are running in a CI job (determined by if # we have a workspace env) or if the starting packages listing already exists. PACKAGES="${START_PACKAGES}" -if ( [ "${workspace}" ] || [ -f "${START_PACKAGES}" ] ) +if [ "${workspace}" ] || [ -f "${START_PACKAGES}" ] then PACKAGES="${END_PACKAGES}" fi @@ -47,7 +47,7 @@ case "${OS_FAMILY}" in ;; esac -if ( [ -f "${START_PACKAGES}" ] && [ -f "${END_PACKAGES}" ] ) +if [ -f "${START_PACKAGES}" ] && [ -f "${END_PACKAGES}" ] then # ` || true` Ignore exit code because diff exits 1 when there is a diff diff "${START_PACKAGES}" "${END_PACKAGES}" > "${DIFF_PACKAGES}" || true