Skip to content

Commit

Permalink
Change output redirection in curl command
Browse files Browse the repository at this point in the history
The curl command within the build script has been adjusted to overwrite response.txt instead of appending to it.
  • Loading branch information
hahn-kev committed Jul 6, 2023
1 parent 3aa2d5c commit 64c5073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
n=0
until [ $n -ge $IterateCount ]
do
curl -s --head "$TARGET_HOST/api/healthz" >> response.txt
curl -s --head "$TARGET_HOST/api/healthz" > response.txt
# get version from response, trim off the header and fix the line endings
versionHeader=$((grep "lexbox-version" response.txt || echo VersionNotFound) | cut -d' ' -f 2 | tr -d '[:space:]')
if [[ "$versionHeader" == "$EXPECTED_VERSION" ]]; then
Expand Down

0 comments on commit 64c5073

Please sign in to comment.