Message ID | f9b1a56c50a96ad6300a48bf74a540579b352411.1687274724.git.steve@sakoman.com |
---|---|
State | New, archived |
Headers | show |
Series | [kirkstone,1/9] nasm: fix CVE-2022-46457 | expand |
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass index f3d83febbf..d944722309 100644 --- a/meta/classes/go.bbclass +++ b/meta/classes/go.bbclass @@ -122,7 +122,7 @@ go_do_install() { tar -C ${B} -cf - --exclude-vcs --exclude '*.test' --exclude 'testdata' pkg | \ tar -C ${D}${libdir}/go --no-same-owner -xf - - if [ -n "`ls ${B}/${GO_BUILD_BINDIR}/`" ]; then + if ls ${B}/${GO_BUILD_BINDIR}/* >/dev/null 2>/dev/null ; then install -d ${D}${bindir} install -m 0755 ${B}/${GO_BUILD_BINDIR}/* ${D}${bindir}/ fi