Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
Only attempt to show the contents of /etc/os-release if that file is present
  • Loading branch information
mbautin authored May 13, 2023
1 parent 8803700 commit 9662afb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-support/jenkins/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,10 @@ if [[ ${YB_SKIP_CREATING_RELEASE_PACKAGE:-} != "1" &&
else
log " Not using Linuxbrew."
fi
log " Contents of /etc/os-release:"
cat /etc/os-release >&2
if [[ -f /etc/os-release ]]; then
log " Contents of /etc/os-release:"
cat /etc/os-release >&2
fi
fi
else
log "Skipping creating distribution package. Build type: $build_type, OSTYPE: ${OSTYPE}," \
Expand Down

0 comments on commit 9662afb

Please sign in to comment.