2db42c6ce745ed37262bed6c97683a00a430f076
Author Patrick Harrison <mestizo@gmail.com> Committer Marc Cornellà <marc.cornella@live.com> Date 2020-12-14 14:52 UTC
Message 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.
Diff 1 diff --git a/plugins/genpass/genpass.plugin.zsh b/plugins/genpass/genpass.plugin.zsh
2 index 1353ef4567bb67263a052fb53db1c68b68fec3fb..e6a1cef348ff2611fcfa4c207b638d6521358357 100644
3 --- a/plugins/genpass/genpass.plugin.zsh
4 +++ b/plugins/genpass/genpass.plugin.zsh
5 @@ -101,6 +101,6 @@ genpass-xkcd() {
6
7 for i in {1..$num}; do
8 printf "$n-"
9 - printf "$dict" | shuf -n "$n" | paste -sd '-'
10 + printf "$dict" | shuf -n "$n" | paste -sd '-' -
11 done
12 }