From 332c0cec7c0e716a29787ff5bfdc6d2b2958fecd Mon Sep 17 00:00:00 2001 From: Alec Rust Date: Mon, 17 Dec 2018 08:30:38 +0000 Subject: [PATCH] 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... ``` --- git_pull/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git_pull/run.sh b/git_pull/run.sh index 23aa26c..7f8dbda 100644 --- a/git_pull/run.sh +++ b/git_pull/run.sh @@ -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"