Skip to content

Commit 01eb072

Browse files
committed
Remove indent
1 parent 0e64e6d commit 01eb072

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

bin/compile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
#!/usr/bin/env bash
22

3-
indent() {
4-
c='s/^/ /'
5-
case $(uname) in
6-
Darwin) sed -l "$c";;
7-
*) sed -u "$c";;
8-
esac
9-
}
10-
113
env_dir=$3
124
ssh_key="$(cat $env_dir/SSH_KEY)"
135

146
if [ "$ssh_key" != "" ]; then
157
echo "-----> Running SSH private key setup"
168

179
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
10+
eval `ssh-agent -s` || exit $?
11+
ssh-add id_rsa || exit $?
12+
ssh -oStrictHostKeyChecking=no -T git@github.com
2113
rm id_rsa
2214
else
2315
echo "-----> No SSH private key"

0 commit comments

Comments
 (0)