diff --git a/hack/test b/hack/test index 447acd05..2445ef8b 100755 --- a/hack/test +++ b/hack/test @@ -35,7 +35,7 @@ case $buildmode in esac 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) fi diff --git a/hack/util b/hack/util index a9ceca35..9627d33b 100755 --- a/hack/util +++ b/hack/util @@ -25,7 +25,7 @@ if [ -z "$CLI_PLATFORM" ]; then rawos=$(uname -s) if [ "$rawos" = "Darwin" ]; then 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" fi fi