File tree Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,11 @@ if [ ! -n "$BASH_VERSION" ];then exec bash "$0" "$@";else set +o posix;fi
4
4
eval ' f() { local i=$((3+(6)));[[ $i = "$(cat <(echo 9))" ]];};f' \
5
5
2> /dev/null || { echo >&2 " This version of bash is too old" ; exit 1; }
6
6
7
- set -e
8
- PROGRAM=" $0 "
7
+ set -e ; PROGRAM=" $0 "
9
8
10
9
show_help_text () {
11
-
12
10
echo " Usage: $( basename " $PROGRAM " ) [Common Name] [arguments]"
13
-
14
- [[ " $BASH3 " = yes || " $NOMIXING " = yes || " $BASHREGEX " = no ]] && {
15
- echo " "
16
- echo " BEWARE: Some features are broken or work poorly on this version"
17
- echo " of bash: $BASH_VERSION "
18
- }
19
-
20
- [[ " $NOPKEY " = yes || " $NOECPARAM " = yes ]] && {
21
- echo " "
22
- echo " BEWARE: Some features are broken or work poorly on this version"
23
- echo " of openssl: $( openssl version) "
24
- }
11
+ version_warnings
25
12
26
13
cat << \!
27
14
@@ -323,6 +310,23 @@ Version 3 certificate extensions.
323
310
exit 0
324
311
}
325
312
313
+ version_warnings () {
314
+
315
+ [[ " $BASH3 " = yes || " $NOMIXING " = yes || " $BASHREGEX " = no ]] && {
316
+ echo " "
317
+ echo " BEWARE: Some features are broken or work poorly on this version"
318
+ echo " of bash: $BASH_VERSION "
319
+ }
320
+
321
+ [[ " $NOPKEY " = yes || " $NOECPARAM " = yes ]] && {
322
+ echo " "
323
+ echo " BEWARE: Some features are broken or work poorly on this version"
324
+ echo " of openssl: $( openssl version) "
325
+ }
326
+
327
+ return 0
328
+ }
329
+
326
330
main () {
327
331
eval " typeset -A SANDUP # bash4/ksh" 2> /dev/null && BASH3=no || BASH3=yes
328
332
You can’t perform that action at this time.
0 commit comments