Merge pull request #872 from croisez/main

Use of git command to retrieve the current commit hash - more robust way, take care of branch cases
This commit is contained in:
ehpersonal38
2023-04-25 19:14:59 -04:00
committed by GitHub
+1 -1
View File
@@ -45,7 +45,7 @@ function update() {
<button type="submit" name="submit" value="sudo clear_all_data.sh" onclick="return confirm('Clear ALL Data? Note that this cannot be undone and will take up to 90 seconds.')">Clear ALL data</button>
</form>
<?php
$cmd="cat ".$home."/BirdNET-Pi/.git/refs/heads/main";
$cmd="cd ".$home."/BirdNET-Pi && sudo -u ".$user." git rev-list --max-count=1 HEAD";
$curr_hash = shell_exec($cmd);
?>
<p style="font-size:11px;text-align:center"></br></br>Running version: </p>