Merge pull request #10 from makermelissa/main

Update CP installer to allow continuing even if boot drive doesn't match
This commit is contained in:
Melissa LeBlanc-Williams 2024-03-25 14:21:36 -07:00 committed by GitHub
commit 90c20e17d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -618,8 +618,9 @@ export class CPInstallButton extends InstallButton {
return;
}
if (bootloaderVolume && bootloaderVolume != dirHandle.name) {
alert(`The selected drive named ${dirHandle.name} does not match the expected name of ${bootloaderVolume}. Please select the correct drive.`);
return;
if (!confirm(`The selected drive named ${dirHandle.name} does not match the expected name of ${bootloaderVolume}. Continue anyways?`)) {
return;
}
}
if (!await this._verifyPermission(dirHandle)) {
alert("Unable to write to the selected folder");