diff --git a/Makefile b/Makefile index 2ffffca..c7beb94 100755 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# SHELL defines bash so all the inline scripts here will work as expected. +SHELL := /bin/bash + # GO_VERSION refers to the version of Golang to be downloaded when running dockerized version GO_VERSION = 1.20 GOIMPORTS_VERSION = v0.11.0 diff --git a/hack/verify-diff.sh b/hack/verify-diff.sh index ab9de9d..299bb44 100755 --- a/hack/verify-diff.sh +++ b/hack/verify-diff.sh @@ -1,3 +1,12 @@ +#/bin/bash + +#----------------------------------------- +# Workaround for git issue on OpenShift CI +#----------------------------------------- +if [ -n "$CI" ]; then + git config --global --add safe.directory /go/src/github.com/medik8s/common +fi + FILE_DIFF=$(git ls-files -o --exclude-standard) if [ "$FILE_DIFF" != "" ]; then