Skip to content

Commit

Permalink
Merge pull request #1965 from OnlineDynamic/20240905
Browse files Browse the repository at this point in the history
fix re downloading OSUpdate already held locally
  • Loading branch information
OnlineDynamic authored Sep 9, 2024
2 parents 3451f91 + a43af6f commit 7fcc0f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions www/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,18 @@ function UpgradeOS() {
keepOptFPP = '&keepOptFPP=1';
}

//set os name (url for download)
if (os in osAssetMap) {
osName = osAssetMap[os].name;
os = osAssetMap[os].url;
}

//override file location from git to local if already downloaded
if ($('#OSSelect option:selected').text().toLowerCase().indexOf('(download)') === -1) {
os = $('#OSSelect option:selected').text();
osName = $('#OSSelect option:selected').text();
}

if (confirm('Upgrade the OS using ' + osName +
'?\nThis can take a long time. It is also strongly recommended to run FPP backup first.')) {

Expand Down

0 comments on commit 7fcc0f2

Please sign in to comment.