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 0e64e6d commit 01eb072Copy full SHA for 01eb072
bin/compile
@@ -1,23 +1,15 @@
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
18
- (eval `ssh-agent -s` || exit $?) | indent
19
- (ssh-add id_rsa || exit $?) | indent
20
- ssh -oStrictHostKeyChecking=no -T git@github.com | indent
+ eval `ssh-agent -s` || exit $?
+ ssh-add id_rsa || exit $?
+ ssh -oStrictHostKeyChecking=no -T git@github.com
21
rm id_rsa
22
else
23
echo "-----> No SSH private key"
0 commit comments