Commit 0d18398b authored by Jan Möbius's avatar Jan Möbius

Don touch ssh keys

parent 1205e759
Pipeline #15691 passed with stages
in 67 minutes and 15 seconds
......@@ -80,18 +80,20 @@ if [ "$PYTHON" == "no" ]; then
OPTIONS="$OPTIONS -DDISABLE_OPENFLIPPER_PYTHON_SYSTEM=TRUE"
fi
if test -z "$SSH_PRIVATE_KEY"
then
echo Skipping ssh environment preparation
else
# Preparing ssh environment
echo Prepare ssh environment
which ssh-agent || ( echo No SSH Agent found && exit 1 )
eval $(ssh-agent -s)
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
mkdir -p ~/.ssh
chmod 700 ~/.ssh
fi
# Not in Docker, so don't mess with the keys
#if test -z "$SSH_PRIVATE_KEY"
#then
# echo Skipping ssh environment preparation
#else
# # Preparing ssh environment
# echo Prepare ssh environment
# which ssh-agent || ( echo No SSH Agent found && exit 1 )
# eval $(ssh-agent -s)
# echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
# mkdir -p ~/.ssh
# chmod 700 ~/.ssh
#fi
if [ ! -d "~/sw/.git" ]; then
echo Library update skipped
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment