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 | |
parent | f50e412d8488f8b5f586e17d447961233df95d3f (diff) | |
download | poky-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')
-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 @@ | |||
2664 | A post-installation function has the following structure: | 2664 | A post-installation function has the following structure: |
2665 | <literallayout class='monospaced'> | 2665 | <literallayout class='monospaced'> |
2666 | pkg_postinst_PACKAGENAME() { | 2666 | pkg_postinst_PACKAGENAME() { |
2667 | #!/bin/sh -e | ||
2668 | # Commands to carry out | 2667 | # Commands to carry out |
2669 | } | 2668 | } |
2670 | </literallayout> | 2669 | </literallayout> |
@@ -2687,7 +2686,6 @@ | |||
2687 | structure in the post-installation script: | 2686 | structure in the post-installation script: |
2688 | <literallayout class='monospaced'> | 2687 | <literallayout class='monospaced'> |
2689 | pkg_postinst_PACKAGENAME() { | 2688 | pkg_postinst_PACKAGENAME() { |
2690 | #!/bin/sh -e | ||
2691 | if [ x"$D" = "x" ]; then | 2689 | if [ x"$D" = "x" ]; then |
2692 | # Actions to carry out on the device go here | 2690 | # Actions to carry out on the device go here |
2693 | else | 2691 | else |