mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2024-11-24 00:13:46 +01:00
Remove line endings, since gitlab seems to mangle them.
This commit is contained in:
parent
b6a8f25609
commit
dd58c9fa20
1 changed files with 1 additions and 6 deletions
|
@ -1,9 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
source agent-start
|
source agent-start
|
||||||
|
cat - | tr -d '\r' | ssh-add -
|
||||||
# I'm not particularly sure WHY this isn't working properly before, and why this makes it work
|
|
||||||
# but it seems to.
|
|
||||||
cat /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-----\n/' | sed 's/-END-/-----END RSA PRIVATE KEY-----\n/' |
|
|
||||||
ssh-add -
|
|
Loading…
Reference in a new issue