From da6cf146003d4b8e8dc26c86aff00c9cef9363b1 Mon Sep 17 00:00:00 2001 From: Martin Lablans <6804500+lablans@users.noreply.github.com> Date: Fri, 30 Sep 2022 13:42:41 +0200 Subject: [PATCH] Add missing newline in update-bridgehead.sh --- lib/update-bridgehead.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/update-bridgehead.sh b/lib/update-bridgehead.sh index 6b4e0fe..9788ff1 100755 --- a/lib/update-bridgehead.sh +++ b/lib/update-bridgehead.sh @@ -34,7 +34,8 @@ for DIR in /etc/bridgehead $(pwd); do log "INFO" "Git is using proxy ${HTTP_PROXY_URL} from ${CONFFILE}" git -c http.proxy=$HTTP_PROXY_URL -c http.proxy=$HTTP_PROXY_URL -C $DIR fetch 2>&1 git -c http.proxy=$HTTP_PROXY_URL -c http.proxy=$HTTP_PROXY_URL -C $DIR pull 2>&1 - fi new_git_hash="$(git -C $DIR rev-parse --verify HEAD)" + fi + new_git_hash="$(git -C $DIR rev-parse --verify HEAD)" git_updated="false" if [ "$old_git_hash" != "$new_git_hash" ]; then log "INFO" "Updated git repository in ${DIR} from commit $old_git_hash to $new_git_hash"