#!/bin/bash if [[ $1 != "true" ]] ; then echo "Creating a go.work file" txt="go 1.19\n\nuse ./\n" if [ "$BUILD_ENTERPRISE_READY" == "true" ] then txt="${txt}use ../../enterprise\n" fi printf "$txt" > "go.work" fi