Skip to content

Commit

Permalink
[fix] gitlab ssh-add failure (ref. https://stackoverflow.com/question…
Browse files Browse the repository at this point in the history
  • Loading branch information
130s committed Nov 18, 2021
1 parent ffb174a commit cf0961b
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 @@ -35,7 +35,7 @@ if [ -n "$SSH_PRIVATE_KEY" ]; then
# shellcheck disable=SC2046
eval $(ssh-agent -s)
# add key to agent
ssh-add <(echo "$SSH_PRIVATE_KEY") || { res=$?; echo "could not add ssh key"; exit $res; }
ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 -d) || { res=$?; echo "could not add ssh key"; exit $res; }

if [ -n "$SSH_SERVER_HOSTKEYS" ]; then
mkdir -p ~/.ssh
Expand Down

0 comments on commit cf0961b

Please sign in to comment.