}
// Pre-process and perform validation when "clean" is before a "build" or "make" command as a safety check.
- if (operations_length > 1) {
+ if (operations_length) {
for (uint8_t has_clean = F_false; i < operations_length; ++i) {
if (operations[i] == fake_operation_clean_e) {
if (build_arguments && build_arguments->used) {
path_file.used = data->path_data_build.used + build_arguments->array[0].used;
}
- else if (data->flag & fake_data_flag_has_operation_e) {
+ else if (!process_pipe || (data->flag & fake_data_flag_has_operation_e)) {
path_file.used = data->file_data_build_settings.used;
}
else {
memcpy(path_file_string, data->path_data_build.string, sizeof(f_char_t) * data->path_data_build.used);
memcpy(path_file_string + data->path_data_build.used, build_arguments->array[0].string, sizeof(f_char_t) * build_arguments->array[0].used);
}
- else if (data->flag & fake_data_flag_has_operation_e) {
+ else if (!process_pipe || (data->flag & fake_data_flag_has_operation_e)) {
memcpy(path_file_string, data->file_data_build_settings.string, sizeof(f_char_t) * data->file_data_build_settings.used);
}
else {
}
if (F_status_is_error_not(*status)) {
- if (build_arguments && build_arguments->used || (data->flag & fake_data_flag_has_operation_e)) {
+ if (build_arguments && build_arguments->used || !process_pipe || (data->flag & fake_data_flag_has_operation_e)) {
*status = fake_file_buffer(data, path_file, process_pipe ? F_false : F_true, &buffer);
}
}