mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 10:22:00 +00:00
fix(genpass): add compatibility for macOS paste command
"paste" on macOS requires a '-' to signify that the standard input is used. Without the '-' character, the command errors out.
This commit is contained in:
parent
076f7f1eb1
commit
2db42c6ce7
1 changed files with 1 additions and 1 deletions
|
@ -101,6 +101,6 @@ genpass-xkcd() {
|
|||
|
||||
for i in {1..$num}; do
|
||||
printf "$n-"
|
||||
printf "$dict" | shuf -n "$n" | paste -sd '-'
|
||||
printf "$dict" | shuf -n "$n" | paste -sd '-' -
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue