Skip to content

Commit

Permalink
fix reg error in 10-bash.jinjia
Browse files Browse the repository at this point in the history
Signed-off-by: xcfxr <[email protected]>
  • Loading branch information
xcfxr committed Jan 3, 2025
1 parent 038e629 commit 2bca4f3
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 2bca4f3

Please sign in to comment.