From 6db973d62f5ade828e5d5dd4783a217a8c2f014f Mon Sep 17 00:00:00 2001 From: gmillot <gael.millot@pasteur.fr> Date: Thu, 6 Jun 2019 15:35:48 +0200 Subject: [PATCH] v1.2.0 release --- README.md | 5 +++++ little_bash_functions.sh | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c7f0c4c..769bc34 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/little_bash_functions.sh b/little_bash_functions.sh index d12a4c4..53f0656 100644 --- a/little_bash_functions.sh +++ b/little_bash_functions.sh @@ -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" -- GitLab