Skip to content

Commit

Permalink
Merge pull request #67 from thomasjacquin/placeholder-fix
Browse files Browse the repository at this point in the history
functions.php: fix placeholder
  • Loading branch information
linuxkidd authored Jan 15, 2022
2 parents 6bcf95a + 5fa5170 commit de99206
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

// If on a Pi, check that the placholder was replaced.
exec("grep 'Model.*: Raspberry' /proc/cpuinfo", $on_Pi);
if ($on_Pi[0] != "" && ALLSKY_CONFIG == "XX_ALLSKY_CONFIG_XX") {
// Split the placeholder so it doesn't get replaced if the update script is run multiple times.
if ($on_Pi[0] != "" && ALLSKY_CONFIG == "XX_ALLSKY_CONFIG" . "_XX") {
// This file hasn't been updated yet after installation.
echo "<div style='font-size: 200%;'>";
echo "<span style='color: red'>";
Expand Down

0 comments on commit de99206

Please sign in to comment.