fix: fail make check on shellcheck findings

This commit is contained in:
Felitendo committed 2026-09-25 09:29:12 +02:00
1 parent b75c2868fe
commit bccd1f5510
4 files changed
+10 -4

No files matched your search

+1
View File
@@ -65,6 +65,7 @@ fu_kv_set() {
{
printf '# %s\n' "$header"
printf '#\n'
# shellcheck disable=SC2016 # the backticks are text
printf '# Written by `%s`. Nothing here needs editing by hand:\n' "$FU_NAME"
printf '# every option is in the menu.\n'
} > "$file" || return 1
+2 -2
View File
@@ -421,11 +421,11 @@ _fu_camera_label() {
# _fu_setting_change <scope> <Key> <type> <current> <choices> <step>
_fu_setting_change() {
local scope="$1" key="$2" type="$3" current="$4" choices="$5" step="$6" next
local scope="$1" key="$2" type="$3" current="$4" options="$5" step="$6" next
case "$type" in
bool) if fu_is_true "$current"; then next=no; else next=yes; fi ;;
choice) next="$(_fu_next_choice "$current" "$choices" "$step")" ;;
choice) next="$(_fu_next_choice "$current" "$options" "$step")" ;;
camera) next="$(_fu_next_camera "$current" "$step")" ;;
esac