File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 66# project; use with other POSIX shells for Windows may require modification to
77# this wrapper script.
88
9+ echo " Easy-RSA starting.."
10+
911setup_path=" ${EASYRSA:- $PWD } "
1012export PATH=" $setup_path ;$setup_path /bin;$PATH "
1113export HOME=" $setup_path "
@@ -24,9 +26,8 @@ for f in $extern_list; do
2426 echo " Your installation is incomplete and cannot function without the required"
2527 echo " files."
2628 echo " "
27- echo " Press enter to exit."
2829 # shellcheck disable=SC2162
29- read
30+ read -p " Press Enter or CTRL-C to exit. "
3031 exit 1
3132 fi
3233done
4849# Access denied
4950access_denied () {
5051 echo " Access error: $1 "
51- cat << "ACCESS_DENIED_MSG "
52-
52+ echo " \
5353To use Easy-RSA in a protected system directory, you must have
54- full administrator privileges via Windows User Access Control.
55-
56- Press Enter or CTRL-C to exit.
57- ACCESS_DENIED_MSG
54+ full administrator privileges via Windows User Access Control."
55+ echo " "
5856
5957 # shellcheck disable=SC2162
60- read
58+ read -p " Press Enter or CTRL-C to exit. "
6159 exit 1
6260}
6361
130128
131129[ -f " $setup_path /easyrsa" ] || {
132130 echo " Missing easyrsa script. Expected to find it at: $setup_path /easyrsa"
131+ read -p " Press Enter or CTRL-C to exit."
133132 exit 2
134133}
135134
You can’t perform that action at this time.
0 commit comments