diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2015-01-22 11:02:14 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-17 15:16:53 +0000 |
commit | ee8048544303a35eead75ec3ef17f22fd8759868 (patch) | |
tree | 6e7f4cfed754853e8ca305c4c1d22689dcdbf4cf /documentation/dev-manual/dev-manual-common-tasks.xml | |
parent | f50e412d8488f8b5f586e17d447961233df95d3f (diff) | |
download | openembedded-core-contrib-ee8048544303a35eead75ec3ef17f22fd8759868.tar.gz |
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>
Diffstat (limited to 'documentation/dev-manual/dev-manual-common-tasks.xml')
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.xml | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index f2184d09f3..e5526ef65e 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -2664,7 +2664,6 @@ A post-installation function has the following structure: <literallayout class='monospaced'> pkg_postinst_PACKAGENAME() { - #!/bin/sh -e # Commands to carry out } </literallayout> @@ -2687,7 +2686,6 @@ structure in the post-installation script: <literallayout class='monospaced'> pkg_postinst_PACKAGENAME() { - #!/bin/sh -e if [ x"$D" = "x" ]; then # Actions to carry out on the device go here else |