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

@@ -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