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 1fafb87 commit c2225c0Copy full SHA for c2225c0
bin/compile
@@ -1,5 +1,13 @@
1
#!/usr/bin/env bash
2
3
+function 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
@@ -8,7 +16,7 @@ if [ "$ssh_key" != "" ]; then
16
17
mkdir "$HOME/.ssh"
18
echo "$ssh_key" | base64 --decode > "$HOME/.ssh/id_rsa"
- ssh -oStrictHostKeyChecking=no -T [email protected]
19
+ ssh -oStrictHostKeyChecking=no -T [email protected] 2>&1 | indent
20
exit 0
21
else
14
22
echo "-----> No SSH private key"
0 commit comments