Skip to content

Commit 6610b68

Browse files
committed
Add indentation
1 parent 1ed13e0 commit 6610b68

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

bin/compile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
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+
311
env_dir=$3
412
ssh_key="$(cat $env_dir/SSH_KEY)"
513

614
if [ "$ssh_key" != "" ]; then
715
echo "-----> Running SSH private key setup"
816

917
echo "$ssh_key" | base64 --decode > id_rsa
10-
eval `ssh-agent -s` || exit $?
11-
ssh-add id_rsa || exit $?
12-
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
1321
rm id_rsa
1422
else
1523
echo "-----> No SSH private key"

0 commit comments

Comments
 (0)