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

Commit cc85626

Browse files
authored
Merge pull request #23 from wdccdw/master
fix illegal bytestream error from tr on OSX
2 parents 044ecff + 9323077 commit cc85626

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)