Improve wording in Git Pull output (#488)

Currently an example output is:

```sh
Updating ed47959..2da4bb6
Fast-forward
 configuration.yaml | 1 +
 1 file changed, 1 insertion(+)
[Info] Check if something is changed
[Info] Something has changed, check Home-Assistant config
```

For a while I thought the last line was an instruction to the user, especially since this config check seems to take the longest to complete.

This PR improves the wording of the last two lines to make it clearer what's happening:

```sh
Updating ed47959..2da4bb6
Fast-forward
 configuration.yaml | 1 +
 1 file changed, 1 insertion(+)
[Info] Checking if something has changed
[Info] Something has changed, checking Home-Assistant config...
```
This commit is contained in:
Alec Rust
2018-12-17 08:30:38 +00:00
committed by Pascal Vizeli
parent 04d1079008
commit 332c0cec7c

View File

@@ -171,11 +171,11 @@ function git-synchronize {
}
function validate-config {
echo "[Info] Check if something is changed"
echo "[Info] Checking if something has changed..."
# Compare commit ids & check config
NEW_COMMIT=$(git rev-parse HEAD)
if [ "$NEW_COMMIT" != "$OLD_COMMIT" ]; then
echo "[Info] Something has changed, check Home-Assistant config"
echo "[Info] Something has changed, checking Home-Assistant config..."
if hassio homeassistant check; then
if [ "$AUTO_RESTART" == "true" ]; then
DO_RESTART="false"