Skip to content

Commit

Permalink
Wrap echo in double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Nov 28, 2023
1 parent 537c9e0 commit 979bbf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/diffcalc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ jobs:
COMMENT_BODY: ${{ github.event.comment.body }}
run: |
# Add comment environment
echo $COMMENT_BODY | sed -r 's/\r$//' | grep -E '^\w+=' | while read -r line; do
opt=$(echo ${line} | cut -d '=' -f1)
echo "$COMMENT_BODY" | sed -r 's/\r$//' | grep -E '^\w+=' | while read -r line; do
opt=$(echo "${line}" | cut -d '=' -f1)
sed -i "s;^${opt}=.*$;${line};" "${{ needs.directory.outputs.GENERATOR_ENV }}"
done
Expand Down

0 comments on commit 979bbf0

Please sign in to comment.