git_pull: Upgrades Hassio CLI to v3.0.0 (#659)

This commit is contained in:
Franck Nijhof
2019-08-16 00:31:07 +02:00
committed by Pascal Vizeli
parent bca7bad782
commit e25440a776
4 changed files with 8 additions and 4 deletions

View File

@@ -1,5 +1,9 @@
# Changelog
## 7.5
- Update Hass.io CLI to 3.0.0
## 7.4
- Update Hass.io CLI to 2.3.0

View File

@@ -1,5 +1,5 @@
{
"args": {
"CLI_VERSION": "2.3.0"
"CLI_VERSION": "3.0.0"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "Git pull",
"version": "7.4",
"version": "7.5",
"slug": "git_pull",
"description": "Simple git pull to update the local configuration",
"url": "https://home-assistant.io/addons/git_pull/",

View File

@@ -176,7 +176,7 @@ function validate-config {
NEW_COMMIT=$(git rev-parse HEAD)
if [ "$NEW_COMMIT" != "$OLD_COMMIT" ]; then
echo "[Info] Something has changed, checking Home-Assistant config..."
if hassio homeassistant check; then
if hassio --no-progress homeassistant check; then
if [ "$AUTO_RESTART" == "true" ]; then
DO_RESTART="false"
CHANGED_FILES=$(git diff "$OLD_COMMIT" "$NEW_COMMIT" --name-only)
@@ -204,7 +204,7 @@ function validate-config {
fi
if [ "$DO_RESTART" == "true" ]; then
echo "[Info] Restart Home-Assistant"
hassio homeassistant restart 2&> /dev/null
hassio --no-progress homeassistant restart 2&> /dev/null
else
echo "[Info] No Restart Required, only ignored changes detected"
fi