Split that to be easier to read. Fix an additional newline.

This commit is contained in:
John Internet 2020-01-02 20:48:04 +00:00
parent 258e2fe50d
commit bbf699c73b

View file

@ -1,5 +1,6 @@
#!/bin/sh
agent-start
echo /dev/stdin | sed 's/-----BEGIN RSA PRIVATE KEY-----/-START-/' | sed 's/-----END RSA PRIVATE KEY-----/-END-/' | tr ' ' '\n' | sed 's/-START-/-----BEGIN RSA P
RIVATE KEY-----/' | sed 's/-END-/-----END RSA PRIVATE KEY-----/' | ssh-add -
echo /dev/stdin | sed 's/-----BEGIN RSA PRIVATE KEY-----/-START-/' | sed 's/-----END RSA PRIVATE KEY-----/-END-/' |
tr ' ' '\n' | sed 's/-START-/-----BEGIN RSA PRIVATE KEY-----/' | sed 's/-END-/-----END RSA PRIVATE KEY-----/' |
ssh-add -