"frontend/src/vscode:/vscode.git/clone" did not exist on "ef5c8e6839b2d2412ef5903207845bfdbcfa4581"
Commit 2db42c6c authored by Patrick Harrison's avatar Patrick Harrison Committed by Marc Cornellà
Browse files

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.
parent 076f7f1e
...@@ -101,6 +101,6 @@ genpass-xkcd() { ...@@ -101,6 +101,6 @@ genpass-xkcd() {
for i in {1..$num}; do for i in {1..$num}; do
printf "$n-" printf "$n-"
printf "$dict" | shuf -n "$n" | paste -sd '-' printf "$dict" | shuf -n "$n" | paste -sd '-' -
done done
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment