Skip to content

Commit

Permalink
Do not assume update if remote hash is empty
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <[email protected]>
  • Loading branch information
yubiuser committed Oct 14, 2023
1 parent d544473 commit 506bca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/pi-hole/js/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ function updateVersionInfo() {
} else {
// non-master branch
localVersion = "vDev (" + v.branch + ", " + v.hash + ")";
if (v.hash !== v.hash_remote) {
if (v.hash_remote !== null && v.hash !== v.hash_remote) {
// hash differ > Update available
updateComponentAvailable = true;
// link to the commit history instead of release page
Expand Down

0 comments on commit 506bca3

Please sign in to comment.