dev-manual: Removed #!/bin/sh -e from the base script form

This start to the script is not really necessary and is in fact
the rare case.  I have removed two occurrences of it in the
"Post-Installation Scripts" section where it was used in code
as the best form to create a script.

Reported-by: Robert P. J. Day <rpjday@crashcourse.ca>
(From yocto-docs rev: f7c1a1e135e8a9d76005bb6ae7b9cc2810f0af90)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark 2015-01-22 11:02:14 -08:00 committed by Richard Purdie
parent f50e412d84
commit ee80485443
1 changed files with 0 additions and 2 deletions

View File

@ -2664,7 +2664,6 @@
A post-installation function has the following structure: A post-installation function has the following structure:
<literallayout class='monospaced'> <literallayout class='monospaced'>
pkg_postinst_PACKAGENAME() { pkg_postinst_PACKAGENAME() {
#!/bin/sh -e
# Commands to carry out # Commands to carry out
} }
</literallayout> </literallayout>
@ -2687,7 +2686,6 @@
structure in the post-installation script: structure in the post-installation script:
<literallayout class='monospaced'> <literallayout class='monospaced'>
pkg_postinst_PACKAGENAME() { pkg_postinst_PACKAGENAME() {
#!/bin/sh -e
if [ x"$D" = "x" ]; then if [ x"$D" = "x" ]; then
# Actions to carry out on the device go here # Actions to carry out on the device go here
else else