Fix setup on macOS

This commit is contained in:
Matthew Lopez
2024-07-10 16:50:07 -04:00
parent e4b1c0abc7
commit 6a13b4c8bf
2 changed files with 5 additions and 4 deletions

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"