You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#TODO remove file, runShellcheckPullHooks is no also in run-shellcheck.sh
41
41
functionrunShellcheckPullHooks() {
42
-
if!(($#==1));then
42
+
if(($#!=1));then
43
43
logError "Exactly one parameter needs to be passed to runShellcheckPullHooks, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:""$#"
Copy file name to clipboardExpand all lines: src/qa/run-shellcheck.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ function runShellcheck() {
114
114
}
115
115
116
116
functionrunShellcheckPullHooks() {
117
-
if!(($#==1));then
117
+
if(($#!=1));then
118
118
logError "Exactly one parameter needs to be passed to runShellcheckPullHooks, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:""$#"
Copy file name to clipboardExpand all lines: src/utility/git-utils.sh
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ function countCommits() {
103
103
}
104
104
105
105
functionlocalGitIsAhead() {
106
-
if!(($#==1))&&!(($#==2));then
106
+
if(($#!=1))&&(($#!=2));then
107
107
traceAndDie "you need to pass at least the branch name to localGitIsAhead and optionally the name of the remote (defaults to origin) but not more, given: %s""$#"
108
108
fi
109
109
local -r branch=$1
@@ -115,7 +115,7 @@ function localGitIsAhead() {
115
115
}
116
116
117
117
functionlocalGitIsBehind() {
118
-
if!(($#==1))&&!(($#==2));then
118
+
if(($#!=1))&&(($#!=2));then
119
119
traceAndDie "you need to pass at least the branch name to localGitIsBehind and optionally the name of the remote (defaults to origin) but not more, given: %s""$#"
120
120
fi
121
121
local -r branch=$1
@@ -127,7 +127,7 @@ function localGitIsBehind() {
127
127
}
128
128
129
129
functionhasRemoteTag() {
130
-
if!(($#==1))&&!(($#==2));then
130
+
if(($#!=1))&&(($#!=2));then
131
131
traceAndDie "you need to pass at least the tag to hasRemoteTag and optionally the name of the remote (defaults to origin) but not more, given: %s""$#"
logError "One argument needs to be passed to parse_args_exitIfParameterDefinitionIsNotTriple, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:""$#"
100
100
echo>&2'1: params the name of an array which contains the parameter definitions'
101
101
printStackTrace
@@ -207,7 +207,7 @@ function parseArgumentsInternal {
207
207
}
208
208
209
209
functionparse_args_printHelp {
210
-
if!(($#==4));then
210
+
if(($#!=4));then
211
211
logError "Three arguments need to be passed to parse_args_printHelp, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:""$#"
212
212
echo>&2'1: params the name of an array which contains the parameter definitions'
213
213
echo>&2'2: examples a string containing examples (or an empty string)'
@@ -256,7 +256,7 @@ function parse_args_printHelp {
256
256
}
257
257
258
258
functionexitIfNotAllArgumentsSet {
259
-
if!(($#==3))&&!(($#==4));then
259
+
if(($#!=3))&&(($#!=4));then
260
260
logError "Three arguments need to be passed to exitIfNotAllArgumentsSet, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:""$#"
261
261
echo>&2'1: params the name of an array which contains the parameter definitions'
262
262
echo>&2'2: examples a string containing examples (or an empty string)'
logError "One parameter needs to be passed to parse_commands_checkParameterDefinitionIsPair, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:""$#"
95
95
echo>&2'1: params the name of an array which contains the command definitions'
96
96
printStackTrace
@@ -152,7 +152,7 @@ function parseCommands {
152
152
}
153
153
154
154
functionparse_commands_printHelp() {
155
-
if!(($#==2));then
155
+
if(($#!=2));then
156
156
logError "Two arguments need to be passed to parse_commands_help, given \033[0;36m%s\033[0m\nFollowing a description of the parameters:""$#"
157
157
echo>&2'1: commands the name of an array which contains the command definitions'
158
158
echo>&2'2: version the version which shall be shown if one uses --version'
echo>&2"in case you wanted your last parameter to be a vararg parameter, then use 'varargs' as last variable name in your array containing the parameter names."
0 commit comments