diff --git a/scripts/set-local-testing.rc b/scripts/set-local-testing.rc new file mode 100644 index 00000000..55d7dee7 --- /dev/null +++ b/scripts/set-local-testing.rc @@ -0,0 +1,17 @@ +if [ ! -f README.md ];then + echo "Run this command from the root of the project directory" +else + FILE="dev.tfrc" + CFG=`realpath $FILE` + ROOTDIR=`dirname $CFG` + + echo " +provider_installation { + dev_overrides { + \"Mastercard/restapi\" = \"$ROOTDIR\" + } +} +" > "$FILE" + + export TF_CLI_CONFIG_FILE="$CFG" +fi