generate_secrets: improve portability
Some checks are pending
Rust / pre_job (push) Waiting to run
Rust / cargo test (push) Blocked by required conditions
Rust / cargo clippy (push) Blocked by required conditions
Rust / cargo fmt (push) Blocked by required conditions
Rust / Code coverage (push) Blocked by required conditions

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
}