mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
git_pull: delete key file first so we are not always appending (#1218)
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 7.12
|
||||||
|
|
||||||
|
- Fix error of deployment_key eventually failing by overwriting the deployment_key every cycle
|
||||||
|
|
||||||
## 7.11
|
## 7.11
|
||||||
|
|
||||||
- Update Home Assistant CLI to 4.2.0
|
- Update Home Assistant CLI to 4.2.0
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Git pull",
|
"name": "Git pull",
|
||||||
"version": "7.11",
|
"version": "7.12",
|
||||||
"slug": "git_pull",
|
"slug": "git_pull",
|
||||||
"description": "Simple git pull to update the local configuration",
|
"description": "Simple git pull to update the local configuration",
|
||||||
"url": "https://github.com/home-assistant/hassio-addons/tree/master/git_pull",
|
"url": "https://github.com/home-assistant/hassio-addons/tree/master/git_pull",
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ function add-ssh-key {
|
|||||||
) > ~/.ssh/config
|
) > ~/.ssh/config
|
||||||
|
|
||||||
echo "[Info] Setup deployment_key on id_${DEPLOYMENT_KEY_PROTOCOL}"
|
echo "[Info] Setup deployment_key on id_${DEPLOYMENT_KEY_PROTOCOL}"
|
||||||
|
rm -f "${HOME}/.ssh/id_${DEPLOYMENT_KEY_PROTOCOL}"
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
echo "$line" >> "${HOME}/.ssh/id_${DEPLOYMENT_KEY_PROTOCOL}"
|
echo "$line" >> "${HOME}/.ssh/id_${DEPLOYMENT_KEY_PROTOCOL}"
|
||||||
done <<< "$DEPLOYMENT_KEY"
|
done <<< "$DEPLOYMENT_KEY"
|
||||||
|
|||||||
Reference in New Issue
Block a user