use parameter transformation instead of printf
This commit is contained in:
parent
b8e4515179
commit
135c9dad86
1 changed files with 1 additions and 2 deletions
|
@ -130,8 +130,7 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
COMMIT_MESSAGE="${{ steps.extract_commit_message.outputs.message }}"
|
||||
ESCAPED_COMMIT_MESSAGE=$(printf '%q' "$COMMIT_MESSAGE")
|
||||
OUTPUT="$(python .forgejo/workflows/scripts/message.py '$ESCAPED_COMMIT_MESSAGE')"
|
||||
OUTPUT="$(python .forgejo/workflows/scripts/message.py "${ESCAPED_COMMIT_MESSAGE@Q}")"
|
||||
if [ "$OUTPUT" = "Usage: python message.py <commit_message>" ]; then
|
||||
echo "Called without commit message!"
|
||||
exit 1
|
||||
|
|
Reference in a new issue