Skip to content

Commit

Permalink
Merge pull request archlinux#58 from Foxboron/morten/fix-preset
Browse files Browse the repository at this point in the history
mkinitcpio: fixed missing _opt_long
  • Loading branch information
grazzolini authored Aug 12, 2021
2 parents f40bb42 + cf96fa6 commit b5ae503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkinitcpio
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ process_preset() (
preset_microcode=${p}_microcode[@]
if [[ ${!preset_microcode:-$ALL_microcode} ]]; then
for mc in "${!preset_microcode:-${ALL_microcode[@]}}"; do
preset_cmd+=(-m "$mc")
preset_cmd+=(--microcode "$mc")
done
fi
msg2 "${preset_cmd[*]}"
Expand Down Expand Up @@ -457,7 +457,7 @@ _opt_short='A:c:D:g:H:hk:nLMPp:r:S:sd:t:U:Vvz:'
_opt_long=('add:' 'addhooks:' 'config:' 'generate:' 'hookdir': 'hookhelp:' 'help'
'kernel:' 'listhooks' 'automods' 'moduleroot:' 'nocolor' 'allpresets'
'preset:' 'skiphooks:' 'save' 'generatedir:' 'builddir:' 'version' 'verbose' 'compress:'
'uefi:' 'microcode:' 'splash:' 'kernelimage:' 'uefistub:')
'uefi:' 'microcode:' 'splash:' 'kernelimage:' 'uefistub:' 'cmdline:' 'osrelease:')

parseopts "$_opt_short" "${_opt_long[@]}" -- "$@" || exit 1
set -- "${OPTRET[@]}"
Expand Down

0 comments on commit b5ae503

Please sign in to comment.