generate_secrets: improve portability
Updated print_random function definition to be compatible with multiple default shells
This commit is contained in:
parent
010eec22d3
commit
83508a363c
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user