mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 21:24:20 +01:00
git_pull: delete key file first so we are not always appending (#1218)
This commit is contained in:
@@ -30,6 +30,7 @@ function add-ssh-key {
|
||||
) > ~/.ssh/config
|
||||
|
||||
echo "[Info] Setup deployment_key on id_${DEPLOYMENT_KEY_PROTOCOL}"
|
||||
rm -f "${HOME}/.ssh/id_${DEPLOYMENT_KEY_PROTOCOL}"
|
||||
while read -r line; do
|
||||
echo "$line" >> "${HOME}/.ssh/id_${DEPLOYMENT_KEY_PROTOCOL}"
|
||||
done <<< "$DEPLOYMENT_KEY"
|
||||
|
||||
Reference in New Issue
Block a user