We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebeb922 commit e058fa2Copy full SHA for e058fa2
1 file changed
rootfs/builder/build.sh
@@ -107,11 +107,11 @@ fi
107
108
## SSH key configuration
109
110
-if [[ -n "$SSH_KEY" ]]; then
+if [[ -f "$env_root/SSH_KEY" ]]; then
111
mkdir -p ~/.ssh/
112
chmod 700 ~/.ssh/
113
114
- echo "$SSH_KEY" | base64 -d > ~/.ssh/id_rsa
+ base64 -d "$env_root/SSH_KEY" > ~/.ssh/id_rsa
115
chmod 400 ~/.ssh/id_rsa
116
117
echo 'StrictHostKeyChecking=no' > ~/.ssh/config
0 commit comments