Fix setup on macOS

This commit is contained in:
Matthew Lopez 2024-07-10 16:50:07 -04:00
parent e4b1c0abc7
commit 6a13b4c8bf
No known key found for this signature in database
GPG Key ID: 302A6EE3D63B7E0E
2 changed files with 5 additions and 4 deletions

View File

@ -24,9 +24,10 @@ Before you start setting up the Pretendo Network server, make sure your system m
| --------------------------------- | -------------- |
| Windows (Docker Desktop on WSL 2) | ✅ Working |
| Linux (Docker Engine) | ✅ Working |
| macOS (Docker Desktop) | ❓ Untested\* |
| macOS (Docker Desktop) | ✅ Working\* |
_\*macOS is untested because I don't own the hardware to test it with. In theory, it should work._
_\*Please note that this project is not regularly tested on macOS, but users have reported that it works. If you
encounter any issues, please report them!_
## Software

View File

@ -14,12 +14,12 @@ parse_arguments "$@"
generate_password() {
length=$1
head /dev/urandom | tr -dc "a-zA-Z0-9" | head -c "$length"
head /dev/urandom | LC_ALL=C tr -dc "a-zA-Z0-9" | head -c "$length"
}
generate_hex() {
length=$1
head /dev/urandom | tr -dc "A-F0-9" | head -c "$length"
head /dev/urandom | LC_ALL=C tr -dc "A-F0-9" | head -c "$length"
}
cd "$git_base_dir/environment"