From c89c0293996e4a3c7e2fe0539524b98238a57305 Mon Sep 17 00:00:00 2001 From: Adam <90734270+adam-mateen@users.noreply.github.com> Date: Fri, 18 Nov 2022 14:00:35 -0600 Subject: [PATCH] Fix create_rpm.sh from reading a file that does not exist. (#642) --- Tools/src/create_rpm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tools/src/create_rpm.sh b/Tools/src/create_rpm.sh index 4d1f85d41a..5d2deb735c 100755 --- a/Tools/src/create_rpm.sh +++ b/Tools/src/create_rpm.sh @@ -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"