bootc-base-image-build-mirror/scripts/utils/initSSHclient.sh
Radostin Emanuilov f00b160a42
fix: and + space
2024-08-28 16:30:05 +01:00

12 lines
395 B
Bash

#!/bin/bash
set -e
if [ -n "$CI" ] && [ ! -d "$SECURE_FILES_DOWNLOAD_PATH" ]; then
mkdir $SECURE_FILES_DOWNLOAD_PATH
echo -e "$BUILDER_PUBLIC_KEY" > $SECURE_FILES_DOWNLOAD_PATH/id_ed25519.pub
echo -e "$BUILDER_PRIVATE_KEY" > $SECURE_FILES_DOWNLOAD_PATH/id_ed25519
chmod -R 600 $SECURE_FILES_DOWNLOAD_PATH
fi
eval "$(ssh-agent -s)"
ssh-add $SECURE_FILES_DOWNLOAD_PATH/id_ed25519