#!/bin/bash OUTPUT_SCRIPT=${OUTPUT_SCRIPT:-/home/circleci/project/ci_test_script.sh} # only source if file exists if [[ -f /home/circleci/project/env ]]; then source /home/circleci/project/env fi cat >"${OUTPUT_SCRIPT}" <