Skip to content
Snippets Groups Projects
Commit 6db973d6 authored by Gael  MILLOT's avatar Gael MILLOT
Browse files

v1.2.0 release

parent b251ec8a
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,11 @@ Check for updated versions (more recent release tags) at https://gitlab.pasteur.
#### WHAT'S NEW IN
## v1.2.0
output file name error in test_column_nb_perline_in_file_fun fixed
## v1.1.0
single_path_with_regex_fun function deals now with url
......
......@@ -2,7 +2,7 @@
################################################################
## ##
## LITTLE BASH FUNCTIONS v1.0.0 ##
## LITTLE BASH FUNCTIONS v1.2.0 ##
## ##
## Gael A. Millot ##
## ##
......@@ -289,7 +289,7 @@ function test_column_nb_perline_in_file_fun () {
# -i or --input: file name and path. Must be tab delimited
# -o or --output: output file in which problematic lines are printed.
# If -o specified, the file must not exists.
# IF -o not specified, by default, the file name is -i_line_error and must not already exists at -i location
# IF -o not specified, by default, the file name is -i_error_line and must not already exists at -i location
# -c or --cleanoutput: output file containing the lines without the problematic lines.
# If -c specified, the file must not exists.
# IF -c not specified, the file name is -i_wo_error_line and must not already exists at -i location
......@@ -332,14 +332,14 @@ function test_column_nb_perline_in_file_fun () {
return 1
fi
if [[ -z $OUTPUT_FUN ]]; then
local OUTPUT_FUN=${INPUT_FUN}_line_error
local OUTPUT_FUN=${INPUT_FUN}_error_line
fi
if [[ -f $OUTPUT_FUN ]]; then
echo -e "\n### test_column_nb_perline_in_file_fun ERROR ### ${OUTPUT_FUN} FILE ALREADY EXISTS\n"
return 1
fi
if [[ -z $OUTPUT_WOPATTERN_FUN ]]; then
local OUTPUT_WOPATTERN_FUN=${INPUT_FUN}_wo_pattern
local OUTPUT_WOPATTERN_FUN=${INPUT_FUN}_wo_error_line
fi
if [[ -f $OUTPUT_WOPATTERN_FUN ]]; then
echo -e "\n### test_column_nb_perline_in_file_fun ERROR ### ${OUTPUT_WOPATTERN_FUN} FILE ALREADY EXISTS\n"
......
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