Merge pull request #1033 from chri2/master

fix bug with e.g. nosplash parameter in kernel command line
This commit is contained in:
tlaurion 2021-10-15 14:38:16 -04:00 committed by GitHub
commit 7519f34d90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,9 @@ adjusted_cmd_line="n"
adjust_cmd_line() {
if [ -n "$cmdremove" ]; then
for i in $cmdremove; do
cmdline="${cmdline//$i/}"
cmdline="${cmdline#$i }"
cmdline="${cmdline/ $i / }"
cmdline="${cmdline% $i}"
done
fi