#!/bin/bash export GOPATH=/codefresh/volume/.go export GOCACHE=/codefresh/volume/caches/go-build cf_export GOPATH=$GOPATH cf_export GOCACHE=$GOCACHE if [ ! -d "/codefresh/volume/.go" ]; then mkdir -p /codefresh/volume/.go echo "gopath folder has created , should not be created later" fi if [ ! -d "/codefresh/volume/caches/go-build" ]; then echo cache was missed again mkdir -p /codefresh/volume/caches/go-build echo "cache folder has created for later usage" fi echo "cache was detected"