From b2ba55c27b20c51169d16ff8e40ad98176014ccc Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Thu, 21 May 2020 21:23:26 +0100 Subject: [PATCH] Show details of any remotes on the git repositories Signed-off-by: Adam Warner --- advanced/Scripts/piholeDebug.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/advanced/Scripts/piholeDebug.sh b/advanced/Scripts/piholeDebug.sh index 46b4aac8..68131002 100755 --- a/advanced/Scripts/piholeDebug.sh +++ b/advanced/Scripts/piholeDebug.sh @@ -296,7 +296,11 @@ compare_local_version_to_git_version() { log_write "${INFO} ${pihole_component}: ${COL_YELLOW}${remote_version:-Untagged}${COL_NC} (${FAQ_UPDATE_PI_HOLE})" fi - # If the repo is on the master branch, they are on the stable codebase + # Print the repo upstreams + remotes=$(git remote -v) + log_write "${INFO} Remotes: ${remotes//$'\n'/'\n '}" + + # If the repo is on the master branchs, they are on the stable codebase if [[ "${remote_branch}" == "master" ]]; then # so the color of the text is green log_write "${INFO} Branch: ${COL_GREEN}${remote_branch}${COL_NC}"