Skip to content

Commit

Permalink
Fix create_rpm.sh from reading a file that does not exist. (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-mateen committed Nov 18, 2022
1 parent 214d5a2 commit c89c029
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tools/src/create_rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ set -e

SPEC_FILE="${PREPKGPATH}/amazon-cloudwatch-agent.spec"
BUILD_ROOT="${BUILD_SPACE}/private/linux_${ARCH}/rpm-build"
AGENT_VERSION_WITHOUT_SED=$(cat ${BUILD_SPACE}/bin/CWAGENT_VERSION)
AGENT_VERSION=$(cat ${PREPKGPATH}/CWAGENT_VERSION | sed -e "s/-/+/g")

echo "BUILD_SPACE: ${BUILD_SPACE} agent: ${AGENT_VERSION_WITHOUT_SED} agent_version: ${AGENT_VERSION} pre-package location:${PREPKGPATH}"
echo "BUILD_SPACE: ${BUILD_SPACE} agent_version: ${AGENT_VERSION} pre-package location:${PREPKGPATH}"


echo "Creating rpm-build workspace"
Expand Down

0 comments on commit c89c029

Please sign in to comment.