File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -213,60 +213,70 @@ doorstop_bool() {
213
213
}
214
214
215
215
# Read from command line
216
- while : ; do
216
+ i=0; max=$#
217
+ while [ $i -lt $max ]; do
217
218
case " $1 " in
218
219
--doorstop_enabled) # For backwards compatibility. Renamed to --doorstop-enabled
219
220
enabled=" $( doorstop_bool " $2 " ) "
220
221
shift
222
+ i=$(( i+ 1 ))
221
223
;;
222
224
--doorstop_target_assembly) # For backwards compatibility. Renamed to --doorstop-target-assembly
223
225
target_assembly=" $2 "
224
226
shift
227
+ i=$(( i+ 1 ))
225
228
;;
226
229
--doorstop-enabled)
227
230
enabled=" $( doorstop_bool " $2 " ) "
228
231
shift
232
+ i=$(( i+ 1 ))
229
233
;;
230
234
--doorstop-target-assembly)
231
235
target_assembly=" $2 "
232
236
shift
237
+ i=$(( i+ 1 ))
233
238
;;
234
239
--doorstop-boot-config-override)
235
240
boot_config_override=" $2 "
236
241
shift
242
+ i=$(( i+ 1 ))
237
243
;;
238
244
--doorstop-mono-dll-search-path-override)
239
245
dll_search_path_override=" $2 "
240
246
shift
247
+ i=$(( i+ 1 ))
241
248
;;
242
249
--doorstop-mono-debug-enabled)
243
250
debug_enable=" $( doorstop_bool " $2 " ) "
244
251
shift
252
+ i=$(( i+ 1 ))
245
253
;;
246
254
--doorstop-mono-debug-suspend)
247
255
debug_suspend=" $( doorstop_bool " $2 " ) "
248
256
shift
257
+ i=$(( i+ 1 ))
249
258
;;
250
259
--doorstop-mono-debug-address)
251
260
debug_address=" $2 "
252
261
shift
262
+ i=$(( i+ 1 ))
253
263
;;
254
264
--doorstop-clr-runtime-coreclr-path)
255
265
coreclr_path=" $2 "
256
266
shift
267
+ i=$(( i+ 1 ))
257
268
;;
258
269
--doorstop-clr-corlib-dir)
259
270
corlib_dir=" $2 "
260
271
shift
272
+ i=$(( i+ 1 ))
261
273
;;
262
274
* )
263
- if [ -z " $1 " ]; then
264
- break
265
- fi
266
- rest_args=" $rest_args $1 "
275
+ set -- " $@ " " $1 "
267
276
;;
268
277
esac
269
278
shift
279
+ i=$(( i+ 1 ))
270
280
done
271
281
272
282
# Move variables to environment
299
309
export DYLD_INSERT_LIBRARIES=" ${doorstop_name} :${DYLD_INSERT_LIBRARIES} "
300
310
fi
301
311
302
- # shellcheck disable=SC2086
303
- exec " $executable_path " $rest_args
312
+ exec " $executable_path " " $@ "
You can’t perform that action at this time.
0 commit comments