Skip to content

Commit

Permalink
luci-app-attendedsysupgrade: fix search for x86 target
Browse files Browse the repository at this point in the history
The conditional is wrong. IndexOf returns a number and not true/false,
so it does not work.

Signed-off-by: Miguel Angel Mulero Martinez <[email protected]>
  • Loading branch information
McGiverGim committed Oct 19, 2023
1 parent e41228d commit 021c439
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ return view.extend({
for (image of images) {
if (this.firmware.filesystem == image.filesystem) {
// x86 images can be combined-efi (EFI) or combined (BIOS)
if(this.firmware.target.indexOf("x86")) {
if(this.firmware.target.indexOf("x86") != -1) {
if (this.data.efi && image.type == 'combined-efi') {
return image;
} else if (image.type == 'combined') {
Expand Down

0 comments on commit 021c439

Please sign in to comment.