[SOLVED] mkinitrd_command_generator.sh "line 1: unexpected EOF while looking for matching `''
by linux91 from LinuxQuestions.org on (#5JBA6)
Has anyone run into this error using the mkinitrd_command_generator.sh script after upgrading the kernel?
After upgrading the kernel the script mkinitrd_command_generator.sh was run.
The following errors were returned:
bash: line 1: unexpected EOF while looking for matching `''
bash: line 2: syntax error: unexpected end of file
Opening the .sh file with vi with language context highlighting did not show an unmatched quote.
The .sh is the same script used for the last kernel upgrade.
The mkinitrd package has not been changed/upgraded since the last kernel upgrade.
diff -s of this script against a fresh download of mkinitrd-1.4.11-x86_64-24.txz shows the scripts are identical.
This looks like a newbie puzzler with a straightforward remedy, but it's got me stumped.
Maybe the script is calling another script that has the error ...
The complete command line invocation (as su) is:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.10.40 | bash


After upgrading the kernel the script mkinitrd_command_generator.sh was run.
The following errors were returned:
bash: line 1: unexpected EOF while looking for matching `''
bash: line 2: syntax error: unexpected end of file
Opening the .sh file with vi with language context highlighting did not show an unmatched quote.
The .sh is the same script used for the last kernel upgrade.
The mkinitrd package has not been changed/upgraded since the last kernel upgrade.
diff -s of this script against a fresh download of mkinitrd-1.4.11-x86_64-24.txz shows the scripts are identical.
This looks like a newbie puzzler with a straightforward remedy, but it's got me stumped.
Maybe the script is calling another script that has the error ...
The complete command line invocation (as su) is:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.10.40 | bash