Skip to content

Commit c3a9cbd

Browse files
committed
fix typo arguments needs => arguments need
1 parent 63f5036 commit c3a9cbd

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/utility/array-utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ joinByString() {
8585

8686
function arrFilter() {
8787
if (($# != 3)); then
88-
logError "Three arguments needs to be passed to arrFilter, given \033[0;36m%s\033[0m\n" "$#"
88+
logError "Three arguments need to be passed to arrFilter, given \033[0;36m%s\033[0m\n" "$#"
8989
echo >&2 '1: arrayIn name of the array to filter'
9090
echo >&2 '2: arrayOut name of the array which will contain the result'
9191
echo >&2 '3: predicate function which what argument do we check (used in error message)'
@@ -113,7 +113,7 @@ function arrFilter() {
113113

114114
function arrTakeEveryX() {
115115
if (($# != 4)); then
116-
logError "Four arguments needs to be passed to arrTakeEveryX, given \033[0;36m%s\033[0m\n" "$#"
116+
logError "Four arguments need to be passed to arrTakeEveryX, given \033[0;36m%s\033[0m\n" "$#"
117117
echo >&2 '1: arrayIn name of the array to filter'
118118
echo >&2 '2: arrayOut name of the array which will contain the result'
119119
echo >&2 '3: everyXEntry e.g. 2, every second entry'

src/utility/checks.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ sourceOnce "$dir_of_tegonal_scripts/utility/recursive-declare-p.sh"
9393

9494
function checkArgIsArray() {
9595
if (($# != 2)); then
96-
logError "Two arguments needs to be passed to checkArgIsArray, given \033[0;36m%s\033[0m\n" "$#"
96+
logError "Two arguments need to be passed to checkArgIsArray, given \033[0;36m%s\033[0m\n" "$#"
9797
echo >&2 '1: array name of the array to check'
9898
echo >&2 '2: argNumberOrName what argument do we check (used in error message)'
9999
printStackTrace
@@ -134,7 +134,7 @@ function exitIfArgIsNotArrayOrIsEmpty() {
134134

135135
function checkArgIsArrayWithTuples() {
136136
if (($# != 5)); then
137-
logError "Five arguments needs to be passed to checkArgIsArrayWithTuples, given \033[0;36m%s\033[0m\n" "$#"
137+
logError "Five arguments need to be passed to checkArgIsArrayWithTuples, given \033[0;36m%s\033[0m\n" "$#"
138138
echo >&2 '1: array name of the array to check'
139139
echo >&2 '2: tupleNum the number of values of each tuple'
140140
echo >&2 '3: tupleRepresents what does the tuple represent (used in error message)'
@@ -317,7 +317,7 @@ function exitIfVariablesNotDeclared() {
317317

318318
function checkPathIsInsideOf() {
319319
if (($# != 2)); then
320-
logError "Two arguments needs to be passed to checkPathIsInsideOf, given \033[0;36m%s\033[0m\n" "$#"
320+
logError "Two arguments need to be passed to checkPathIsInsideOf, given \033[0;36m%s\033[0m\n" "$#"
321321
echo >&2 '1: pathToCheck the path which should be inside of rootDir'
322322
echo >&2 '2: rootDir the root directory'
323323
printStackTrace

src/utility/io.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ sourceOnce "$dir_of_tegonal_scripts/utility/checks.sh"
5252

5353
function withCustomOutputInput() {
5454
if (($# < 3)); then
55-
logError "At least three arguments needs to be passed to withCustomOutputInput, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:" "$#"
55+
logError "At least three arguments need to be passed to withCustomOutputInput, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:" "$#"
5656
echo >&2 ' 1: outputNr the file descriptor number for the output (i.e. in which you want to write)'
5757
echo >&2 ' 2: inputNr the file descriptor number for the input (i.e. from which you want to read)'
5858
echo >&2 ' 3: callback the name of the callback function which shall be called'

src/utility/parse-utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ sourceOnce "$dir_of_tegonal_scripts/utility/checks.sh"
6161

6262
function printVersion() {
6363
if (($# != 1)) && (($# != 2)); then
64-
logError "Either one or two arguments needs to be passed to printVersion, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:" "$#"
64+
logError "Either one or two arguments need to be passed to printVersion, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:" "$#"
6565
echo >&2 '1: version the version which shall be shown if one uses --version'
6666
echo >&2 '2: stackFrame number of frames to drop to determine the source of the call -- default 3'
6767
printStackTrace
@@ -74,7 +74,7 @@ function printVersion() {
7474

7575
function assignToVariableInOuterScope() {
7676
if (($# != 2)); then
77-
logError "Exactly two arguments needs to be passed to assignToOuterScopeVariable, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:" "$#"
77+
logError "Exactly two arguments need to be passed to assignToOuterScopeVariable, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:" "$#"
7878
echo >&2 '1: variableName the name of the variable in the outer scope to which the given value shall be assigned'
7979
echo >&2 '2: value the value which shall be assigned to the variable'
8080
printStackTrace

0 commit comments

Comments
 (0)