Skip to content
This repository was archived by the owner on Mar 30, 2020. It is now read-only.

Commit 9323077

Browse files
committed
fix illegal bytestream error from tr on OSX
1 parent 044ecff commit 9323077

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

randpass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ done
5656
#
5757
# Output the password
5858
#
59-
printf "%s\n" $(cat /dev/urandom | tr -cd "$cset" | head -c $len )
59+
printf "%s\n" $(cat /dev/urandom | env LC_CTYPE=C tr -cd "$cset" | head -c $len )
6060

0 commit comments

Comments
 (0)