mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 09:17:49 +08:00
hack: fix SC2069 : to redirect stdout+stderr, 2>&1 must be last
See https://github.com/koalaman/shellcheck/wiki/SC2069 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
ee34eb2180
commit
a746959fc1
@ -35,7 +35,7 @@ case $buildmode in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
cacheVolume="buildx-cache"
|
cacheVolume="buildx-cache"
|
||||||
if ! docker inspect "$cacheVolume" 2>&1 >/dev/null ; then
|
if ! docker inspect "$cacheVolume" > /dev/null 2>&1 ; then
|
||||||
cacheVolume=$(docker create --name=buildx-cache -v /root/.cache -v /go/pkg/mod alpine)
|
cacheVolume=$(docker create --name=buildx-cache -v /root/.cache -v /go/pkg/mod alpine)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ if [ -z "$CLI_PLATFORM" ]; then
|
|||||||
rawos=$(uname -s)
|
rawos=$(uname -s)
|
||||||
if [ "$rawos" = "Darwin" ]; then
|
if [ "$rawos" = "Darwin" ]; then
|
||||||
CLI_PLATFORM="darwin/amd64"
|
CLI_PLATFORM="darwin/amd64"
|
||||||
elif uname -s | grep MINGW 2>&1 >/dev/null ; then
|
elif uname -s | grep MINGW > /dev/null 2>&1 ; then
|
||||||
CLI_PLATFORM="windows/amd64"
|
CLI_PLATFORM="windows/amd64"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user