We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ed13e0 commit 6610b68Copy full SHA for 6610b68
bin/compile
@@ -1,15 +1,23 @@
1
#!/usr/bin/env bash
2
3
+indent() {
4
+ c='s/^/ /'
5
+ case $(uname) in
6
+ Darwin) sed -l "$c";;
7
+ *) sed -u "$c";;
8
+ esac
9
+}
10
+
11
env_dir=$3
12
ssh_key="$(cat $env_dir/SSH_KEY)"
13
14
if [ "$ssh_key" != "" ]; then
15
echo "-----> Running SSH private key setup"
16
17
echo "$ssh_key" | base64 --decode > id_rsa
- eval `ssh-agent -s` || exit $?
- ssh-add id_rsa || exit $?
- ssh -oStrictHostKeyChecking=no -T git@github.com
18
+ eval `ssh-agent -s` | indent || exit $?
19
+ ssh-add id_rsa | indent || exit $?
20
+ ssh -oStrictHostKeyChecking=no -T git@github.com | indent
21
rm id_rsa
22
else
23
echo "-----> No SSH private key"
0 commit comments