Merge pull request #1040 from MrChromebox/update_nosplash_fix

kexec-boot: Streamline cmdline remove filtering
This commit is contained in:
tlaurion 2021-10-15 14:41:43 -04:00 committed by GitHub
commit 46be6541fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,9 +49,7 @@ 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=$(echo $cmdline | sed "s/\b$i\b//g")
done
fi