I want to use CopyFiles instruction to copy a file to the cfs_run_dir. Right now cfs_run_dir is not a variable, so I would have to change my script every time to use a different config INI. Instead, I would like to be able to do something like this from within my CTF scripts:
{
"instruction": "CopyFiles",
"description": "Step 1.1: Make backups of the CFE tables that will be changed",
"data": {
"source": "${vsm1:cfs_build_dir}/cf/executive_config.tbl",
"destination": "${vsm1:cfs_build_dir}/cf/executive_config.tbl~"
}
},
{
"instruction": "CopyFiles",
"description": "Step 1.1: Make backups of the CFE tables that will be changed",
"data": {
"source": "${vsm1:cfs_build_dir}/cf/planner_goals.tbl",
"destination": "${vsm1:cfs_build_dir}/cf/planner_goals.tbl~"
}
},
{
"instruction": "CopyFiles",
"description": "Step 1.1: Make backups of the CFE tables that will be changed",
"data": {
"source": "${vsm1:cfs_build_dir}/cf/planner_config.tbl",
"destination": "${vsm1:cfs_build_dir}/cf/planner_config.tbl~"
}
},
And have it actually work, be able to resolve the variable according to the specified target in the INI file.
I want to use CopyFiles instruction to copy a file to the cfs_run_dir. Right now cfs_run_dir is not a variable, so I would have to change my script every time to use a different config INI. Instead, I would like to be able to do something like this from within my CTF scripts:
And have it actually work, be able to resolve the variable according to the specified target in the INI file.