Fix Sonar for DMaaP Mediator

Issue-ID: NONRTRIC-593
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: Ifd480a8151473536762f1e450b4beb22473f5d2a
diff --git a/dmaap-mediator-producer/build-dmaapmediatorproducer-ubuntu.sh b/dmaap-mediator-producer/build-dmaapmediatorproducer-ubuntu.sh
index 18dcc56..59331fe 100755
--- a/dmaap-mediator-producer/build-dmaapmediatorproducer-ubuntu.sh
+++ b/dmaap-mediator-producer/build-dmaapmediatorproducer-ubuntu.sh
@@ -24,13 +24,14 @@
 # ubuntu minion path lacks go
 export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
 
+cd dmaap-mediator-producer
+
 # install the go coverage tool helper
 go get -v github.com/ory/go-acc
 
 export GO111MODULE=on
 go get github.com/stretchr/testify/mock@v1.7.0
 
-cd dmaap-mediator-producer
 go-acc ./... --ignore mocks
 
 cp coverage.txt $curdir