Skip to content

Commit 30d4a4e

Browse files
committed
special case to common case
1 parent ebb8e76 commit 30d4a4e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

op-batcher/enclave-entrypoint.bash

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,8 @@ while [ $# -gt 0 ]; do
126126
value="$1"
127127
fi
128128

129-
# SPECIAL CASE: espresso-url may be a comma list. Either split here,
130-
# or (simpler) pass the flag twice at build time. See note below.
131-
if [[ "$flag" == "--espresso-url" && "$value" == *","* ]]; then
129+
# Handle comma-separated values for any flag
130+
if [[ "$value" == *","* ]]; then
132131
IFS=',' read -r -a parts <<< "$value"
133132
for part in "${parts[@]}"; do
134133
if ! new_url=$(launch_socat "$part" "$SOCAT_PORT"); then

0 commit comments

Comments
 (0)