Skip to content

Commit

Permalink
Attempt ros-industrial#14 1) Seems base64 decode is not needed if tr …
Browse files Browse the repository at this point in the history
…runs with -d https://gitlab.com/gitlab-examples/ssh-private-key/-/issues/1#note_48526556. 2) Removing suppression of ssh-add output to get more info desperately.
  • Loading branch information
130s committed Sep 14, 2022
1 parent a7a843b commit b46a895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if [ -n "$SSH_PRIVATE_KEY" ]; then
PRKEY_EXTENDED="${SSH_PRIVATE_KEY}\n"
echo -e "DEBUG: ssh key: ${SSH_PRIVATE_KEY}"
# add key to agent
echo -n "${SSH_PRIVATE_KEY}" | tr -d '\r' | base64 --decode | ssh-add - > /dev/null || { res=$?; echo "could not add ssh key"; exit $res; }
echo -n "${SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add - || { res=$?; echo "could not add ssh key"; exit $res; }
if [ -n "$SSH_SERVER_HOSTKEYS" ]; then
mkdir -p ~/.ssh
# setup known hosts
Expand Down

0 comments on commit b46a895

Please sign in to comment.