File tree 1 file changed +14
-8
lines changed
modules/swagger-codegen/src/main/resources/bash 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 25
25
# {{#externalDocs}}{{url}}{{/externalDocs}}
26
26
#
27
27
28
+ # ##############################################################################
29
+ #
30
+ # Make sure Bash is at least in version 4.3
31
+ #
32
+ # ##############################################################################
33
+ if ! ( (( "${BASH_VERSION: 0: 1} " == "4 ")) && (( "${BASH_VERSION: 2: 1} " >= "3 ")) ) \
34
+ && ! (( "${BASH_VERSION: 0: 1} " >= "5 ")) ; then
35
+ echo " "
36
+ echo " Sorry - your Bash version is ${BASH_VERSION} "
37
+ echo " "
38
+ echo " You need at least Bash 4.3 to run this script."
39
+ echo " "
40
+ exit 1
41
+ fi
28
42
29
43
# ##############################################################################
30
44
#
@@ -899,14 +913,6 @@ call_{{operationId}}() {
899
913
# #############################################################################
900
914
901
915
902
- # Make sure Bash is at least in version 4.3
903
- if [[ ${BASH_VERSION: 0: 1} < 4 && ${BASH_VERSION: 2: 1} < 3 ]]; then
904
- echo " Sorry - your Bash version is ${BASH_VERSION} "
905
- echo " "
906
- echo " You need at least Bash 4.3 to run this script."
907
- exit 1
908
- fi
909
-
910
916
# Check dependencies
911
917
type curl > /dev/null 2>&1 || { echo >&2 " Error: You do not have 'cURL' installed." ; exit 1; }
912
918
type sed > /dev/null 2>&1 || { echo >&2 " Error: You do not have 'sed' installed." ; exit 1; }
You can’t perform that action at this time.
0 commit comments