File tree 1 file changed +3
-31
lines changed
1 file changed +3
-31
lines changed Original file line number Diff line number Diff line change 22
22
# exit immediately if any unexpected error occurs
23
23
set -e
24
24
25
- openssloptions=" "
26
- DOWNLOAD_OPENSSL=false
27
-
28
25
# These maps are keyed by the prefix of option names (e.g. openj9, omr).
29
26
declare -A source_branch # branch or tag
30
27
declare -A source_folder # local working directory
@@ -140,35 +137,10 @@ process_options() {
140
137
local version=" "
141
138
142
139
for arg in " $@ " ; do
143
- # temporarily handle openssl options that don't follow the general pattern
144
- case " $arg " in
145
- --openssl-repo=* )
146
- # remove leading '-'
147
- arg=" ${arg/ --/ -} "
148
- ;;
149
- --openssl-version=* )
150
- # map to -openssl-branch
151
- version=" ${arg#* =} "
152
- case " $version " in
153
- 1.0.2* | 1.1.* )
154
- version=" OpenSSL_${version// ./ _} "
155
- ;;
156
- 3.* )
157
- version=" openssl-$version "
158
- ;;
159
- * )
160
- ;;
161
- esac
162
- arg=-openssl-branch=$version
163
- ;;
164
- * )
165
- ;;
166
- esac
167
-
168
140
if [[ " $arg " =~ -([A-Za-z0-9]+)-(branch| reference| repo| sha)= .* ]] ; then
169
141
local key=" ${BASH_REMATCH[1]} "
170
142
if [ -z " ${source_folder[${key}]} " ] ; then
171
- fail " Unknown option: $arg "
143
+ fail " Unknown option: ' $arg ' "
172
144
fi
173
145
174
146
local value=" ${arg#* =} "
@@ -197,7 +169,7 @@ process_options() {
197
169
break
198
170
;;
199
171
* )
200
- # bad option
172
+ fail " Unknown option: ' $arg ' "
201
173
usage
202
174
;;
203
175
esac
@@ -234,7 +206,7 @@ clone_or_update_repos() {
234
206
cd - > /dev/null
235
207
else
236
208
echo
237
- echo " Clone repository: $folder "
209
+ echo " Cloning $folder version $branch from $url "
238
210
echo
239
211
240
212
git clone \
You can’t perform that action at this time.
0 commit comments