Skip to content
Snippets Groups Projects
Commit ded00ecd authored by Bob Mottram's avatar Bob Mottram
Browse files

Copy the ci script before running it

This prevents the script from changing during its execution
parent 96a37f49
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,8 @@ function create_ci_daemon {
{ echo '#!/bin/bash';
echo 'set -e';
echo 'set -x';
echo "/usr/local/bin/${PROJECT_NAME}-ci ${ci_target} ${web_dir} ${ci_build_info}"; } > "$script_filename"
echo "cp /usr/local/bin/${PROJECT_NAME}-ci ${install_name}-build/${PROJECT_NAME}-ci";
echo "${install_name}-build/${PROJECT_NAME}-ci ${ci_target} ${web_dir} ${ci_build_info}"; } > "$script_filename"
chmod +x "$script_filename"
birbci --repo "${code_repo}/freedombone" --branch stretch --script "${script_filename}" -w "${web_dir}/index.html" --root yes --synchronous yes --install "${install_name}" --build-log yes
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment