mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 14:20:18 +00:00
commit
6ff0926f4a
1 changed files with 2 additions and 2 deletions
|
@ -302,7 +302,7 @@ compare_local_version_to_git_version() {
|
||||||
remotes=$(git remote -v)
|
remotes=$(git remote -v)
|
||||||
log_write "${INFO} Remotes: ${remotes//$'\n'/'\n '}"
|
log_write "${INFO} Remotes: ${remotes//$'\n'/'\n '}"
|
||||||
|
|
||||||
# If the repo is on the master branchs, they are on the stable codebase
|
# If the repo is on the master branch, they are on the stable codebase
|
||||||
if [[ "${remote_branch}" == "master" ]]; then
|
if [[ "${remote_branch}" == "master" ]]; then
|
||||||
# so the color of the text is green
|
# so the color of the text is green
|
||||||
log_write "${INFO} Branch: ${COL_GREEN}${remote_branch}${COL_NC}"
|
log_write "${INFO} Branch: ${COL_GREEN}${remote_branch}${COL_NC}"
|
||||||
|
@ -315,7 +315,7 @@ compare_local_version_to_git_version() {
|
||||||
log_write "${INFO} Commit: ${remote_commit}"
|
log_write "${INFO} Commit: ${remote_commit}"
|
||||||
# if `local_status` is non-null, then the repo is not clean, display details here
|
# if `local_status` is non-null, then the repo is not clean, display details here
|
||||||
if [[ ${local_status} ]]; then
|
if [[ ${local_status} ]]; then
|
||||||
#Replace new lines in the status with 12 spaces to make the output cleaner
|
# Replace new lines in the status with 12 spaces to make the output cleaner
|
||||||
log_write "${INFO} Status: ${local_status//$'\n'/'\n '}"
|
log_write "${INFO} Status: ${local_status//$'\n'/'\n '}"
|
||||||
local local_diff
|
local local_diff
|
||||||
local_diff=$(git diff)
|
local_diff=$(git diff)
|
||||||
|
|
Loading…
Reference in a new issue