mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
classes: Replace "if test" file tests with POSIX file tests
In entire meta/classes/ directory, replace shell tests of the form "if test -? ..." with POSIX tests of the form "if [ -? ... (From OE-Core rev: 78928016f4cf38cf6751cb089200bf950d07ae93) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
871363251a
commit
f5187871ce
@@ -36,7 +36,7 @@ GO_INSTALL ?= "${GO_IMPORT}/..."
|
||||
|
||||
do_go_compile() {
|
||||
GOPATH=${S}:${STAGING_LIBDIR}/${TARGET_SYS}/go go env
|
||||
if test -n "${GO_INSTALL}" ; then
|
||||
if [ -n "${GO_INSTALL}" ]; then
|
||||
GOPATH=${S}:${STAGING_LIBDIR}/${TARGET_SYS}/go go install -v ${GO_INSTALL}
|
||||
fi
|
||||
}
|
||||
@@ -61,7 +61,7 @@ do_go_install() {
|
||||
|
||||
chown -R root:root "${D}${GOROOT_FINAL}"
|
||||
|
||||
if test -e "${D}${GOBIN_FINAL}" ; then
|
||||
if [ -e "${D}${GOBIN_FINAL}" ]; then
|
||||
install -d -m 0755 "${D}${bindir}"
|
||||
find "${D}${GOBIN_FINAL}" ! -type d -print0 | xargs -r0 mv --target-directory="${D}${bindir}"
|
||||
rmdir -p "${D}${GOBIN_FINAL}" || true
|
||||
|
||||
Reference in New Issue
Block a user