Silence tr stderr output

This seems to be related to the distribution used by the GitHub
`ubuntu-latest` runners, as I can't reproduce it locally on my
Ubuntu 22.04 server.

An useful discussion on this topic:
https://stackoverflow.com/questions/48725875/is-there-a-workaround-for-this-broken-pipe-error

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
This commit is contained in:
Ionut Balutoiu 2023-08-22 11:43:06 +03:00
parent 8900de7a1b
commit 3d3ce2922d

View file

@ -31,7 +31,7 @@ jobs:
- name: Generate secrets
run: |
function randomStringGenerator() {
tr -dc "a-zA-Z0-9@#%^&*()_+?><~;" </dev/urandom | head -c 64 ; echo '';
tr -dc "a-zA-Z0-9@#%^&*()_+?><~;" </dev/urandom 2>/dev/null | head -c 64 ; echo '';
}
GARM_PASSWORD=$(randomStringGenerator)