Skip to content

Commit

Permalink
fix: bootloader: add support judgment for operations
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeChenL committed Jul 24, 2024
1 parent cf7d18c commit 409fc50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/usr/lib/rsetup/tui/system/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ __system_bootloader_helper() {
return
fi

if "$bootloader_method" "$bootloader"
if __external_script_type_check "/usr/lib/u-boot/$bootloader/setup.sh" "$bootloader_method" "function" && \
"$bootloader_method" "$bootloader"
then
msgbox "The $bootloader_type has been updated successfully."
else
Expand Down

0 comments on commit 409fc50

Please sign in to comment.