Skip to content

Commit 52b7855

Browse files
committed
fix: remove useless cat in deploy script to fix shellcheck SC2002
Signed-off-by: szedan <[email protected]>
1 parent 2e634d2 commit 52b7855

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deploy/openshift/deploy-to-openshift.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ sed -e "s|address: \".*\" # model-a-ip|address: \"$MODEL_A_IP\"|g" \
170170
if ! grep -q "$MODEL_A_IP" "$TEMP_CONFIG" || ! grep -q "$MODEL_B_IP" "$TEMP_CONFIG"; then
171171
warn "IP substitution may have failed. Using template config instead..."
172172
# Fallback: create config with sed on known patterns
173-
cat "$SCRIPT_DIR/config-openshift.yaml" | \
174-
sed "s/172\.30\.64\.134/$MODEL_A_IP/g" | \
175-
sed "s/172\.30\.116\.177/$MODEL_B_IP/g" > "$TEMP_CONFIG"
173+
sed -e "s/172\.30\.64\.134/$MODEL_A_IP/g" \
174+
-e "s/172\.30\.116\.177/$MODEL_B_IP/g" \
175+
"$SCRIPT_DIR/config-openshift.yaml" > "$TEMP_CONFIG"
176176
fi
177177

178178
success "Dynamic config generated with IPs: Model-A=$MODEL_A_IP, Model-B=$MODEL_B_IP"

0 commit comments

Comments
 (0)