File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,20 @@ LINTER=$1
9
9
# ex: v1.59.0
10
10
VERSION=$2
11
11
12
+
13
+ if [ -z " $LINTER " ] || [ -z " $VERSION " ]; then
14
+ cat << -EOF
15
+ Missing required arguments!
16
+
17
+ Usage: $0 <linter> <old version> <new version>
18
+ Example: $0 gosec v1.58.1 v1.58.2
19
+ EOF
20
+
21
+ exit 1
22
+ fi
23
+
24
+ EOF
25
+
12
26
# # Clean
13
27
14
28
function cleanBinaries() {
Original file line number Diff line number Diff line change @@ -11,6 +11,19 @@ VERSION_OLD="$2"
11
11
# ex: v1.58.2
12
12
VERSION_NEW=" $3 "
13
13
14
+ if [ -z " $LINTER " ] || [ -z " $VERSION_OLD " ] || [ -z " $VERSION_NEW " ]; then
15
+ cat << -EOF
16
+ Missing required arguments!
17
+
18
+ Usage: $0 <linter> <old version> <new version>
19
+ Example: $0 gosec v1.58.1 v1.58.2
20
+ EOF
21
+
22
+ exit 1
23
+ fi
24
+
25
+ EOF
26
+
14
27
# # Clean
15
28
16
29
function cleanBinaries() {
You can’t perform that action at this time.
0 commit comments