Skip to content

Commit

Permalink
Merge pull request #12775 from xcfxr/master
Browse files Browse the repository at this point in the history
fix reg error in 10-bash.jinjia
  • Loading branch information
vojtapolasek authored Jan 14, 2025
2 parents a0d20a3 + 2bca4f3 commit af4b1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/macros/10-bash.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@ Part of the grub2_bootloader_argument template.
{{%- macro update_etc_default_grub_manually_absent(arg_name) -%}}
# Correct the form of default kernel command line in GRUB
if grep -q '^GRUB_CMDLINE_LINUX=.*{{{ arg_name }}}=.*"' '/etc/default/grub' ; then
sed -i 's/\(^GRUB_CMDLINE_LINUX=".*\){{{ arg_name }}}=?[^[:space:]]*\(.*"\)/\1 \2/' '/etc/default/grub'
sed -i 's/\(^GRUB_CMDLINE_LINUX=".*\){{{ arg_name }}}=\?[^[:space:]]*\(.*"\)/\1 \2/' '/etc/default/grub'
fi
{{%- endmacro %}}

Expand Down

0 comments on commit af4b1c4

Please sign in to comment.