]> code.ossystems Code Review - openembedded-core.git/commitdiff
binconfig-disabled.bbclass: fix echo command
authorRobert Yang <liezhi.yang@windriver.com>
Sun, 1 Feb 2015 02:04:55 +0000 (18:04 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 7 Feb 2015 13:30:56 +0000 (13:30 +0000)
The ">" should be ">>".

We had got something like the following in pcap-config:
echo '--should-not-have-used-/usr/bin/pcap-config'
exit 1

(Lacks of #!/bin/sh)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/classes/binconfig-disabled.bbclass

index 0acc9648b047dbd77f8e2963923b147830b23735..595cd096f51274b95d5f31fbd1472b66d8e4ea03 100644 (file)
@@ -12,7 +12,7 @@ do_install_append () {
                echo "#!/bin/sh" > ${D}$x
                # Make the disabled script emit invalid parameters for those configure
                # scripts which call it without checking the return code.
-               echo "echo '--should-not-have-used-$x'" > ${D}$x
+               echo "echo '--should-not-have-used-$x'" >> ${D}$x
                echo "exit 1" >> ${D}$x
        done
 }