diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2023-05-15 19:37:39 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-22 10:53:48 +0100 |
commit | 916481001922e24b9f5cc1a5bf6b984ea4c772eb (patch) | |
tree | a0d3c8a3451c5394c85497352b9072ffbeef0bb5 /meta/classes-recipe/go.bbclass | |
parent | a5378a0074f23f94728983b0e0ef9fb4555afd11 (diff) | |
download | poky-916481001922e24b9f5cc1a5bf6b984ea4c772eb.tar.gz |
go.bbclass: don't use test to check output from ls
* avoids possibly confusing error message in log.do_install like:
ls: cannot access 'etcd/3.5.7-r0/build/bin/linux_arm64/': No such file or directory
(From OE-Core rev: 2f1777e6ac5269a71203b6a2c562a43503be95ae)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/go.bbclass')
-rw-r--r-- | meta/classes-recipe/go.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/go.bbclass b/meta/classes-recipe/go.bbclass index b02a83a561..39bfaa5156 100644 --- a/meta/classes-recipe/go.bbclass +++ b/meta/classes-recipe/go.bbclass | |||
@@ -132,7 +132,7 @@ go_do_install() { | |||
132 | tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \ | 132 | tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \ |
133 | tar -C ${D}${libdir}/go --no-same-owner -xf - | 133 | tar -C ${D}${libdir}/go --no-same-owner -xf - |
134 | 134 | ||
135 | if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then | 135 | if ls ${B}/${GO_BUILD_BINDIR}/* >/dev/null 2>/dev/null ; then |
136 | install -d ${D}${bindir} | 136 | install -d ${D}${bindir} |
137 | install -m 0755 ${B}/${GO_BUILD_BINDIR}/* ${D}${bindir}/ | 137 | install -m 0755 ${B}/${GO_BUILD_BINDIR}/* ${D}${bindir}/ |
138 | fi | 138 | fi |