From 87ff94bca326683240563436182e83340f1cd3b5 Mon Sep 17 00:00:00 2001 From: "Isaac I.Y. Saito" <130s@2000.jukuin.keio.ac.jp> Date: Fri, 5 Nov 2021 15:39:12 -0400 Subject: [PATCH] [fix] gitlab ssh-add failure (ref. https://stackoverflow.com/questions/55223622) --- gitlab.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab.sh b/gitlab.sh index 83067c98a..7ec57bda7 100755 --- a/gitlab.sh +++ b/gitlab.sh @@ -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