generate_secrets: improve portability

Updated print_random function definition to be compatible with multiple default shells
This commit is contained in:
ChevySSinSD 2024-07-23 07:36:11 -07:00 committed by GitHub
parent 010eec22d3
commit 83508a363c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
#! /bin/sh
function print_random () {
print_random () {
LC_ALL=C tr -dc 'A-Za-z0-9!#%&()*+,-./:;<=>?@[\]^_{|}~' </dev/urandom | head -c 32
}