ci: Use printf(1) to avoid echo(1) problems

Use printf(1) to avoid possible echo(1) incompatibilities like
special escape sequences and the like.

Also, "\n\n" means two linefeeds, without any implicit linefeeds
being added.

Thought for the future: Perhaps test-avrdude should run isatty()
and, if it is not a TTY, not wait for linefeeds at all in the non-
interactive case?
This commit is contained in:
Hans Ulrich Niedermann
2024-08-14 13:35:45 +02:00
parent fb74e288da
commit 6e2152f1b9

View File

@@ -114,7 +114,7 @@ jobs:
- name: Install
run: sudo cmake --build build --target install
- name: Dryrun_test
run: echo -e \\n | ./tools/test-avrdude -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
run: printf "\n\n" | ./tools/test-avrdude -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
- name: Archive build artifacts
if: always()
uses: actions/upload-artifact@v3