Skip to content

Commit 540e9ec

Browse files
committed
fix: Remove oc-mirror version check to avoid v1 deprecation warning
- Remove `oc-mirror version` command that triggers deprecation warning - Script already uses --v2 flag for actual mirroring - Just verify command exists, skip version display
1 parent 9df72c3 commit 540e9ec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rhdp-isolated/bastion/mirror.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ if ! command -v oc-mirror &> /dev/null; then
7777
exit 1
7878
fi
7979

80-
log_info "oc-mirror found: $(oc-mirror version 2>&1 | head -n1 || echo 'v2')"
80+
# Note: We use oc-mirror --v2 (the version command without --v2 shows deprecation warning)
81+
log_info "oc-mirror found (using v2 mode)"
8182

8283
# Create merged auth file in XDG_RUNTIME_DIR for oc-mirror v2
8384
log_step "Setting up authentication for oc-mirror v2"

0 commit comments

Comments
 (0)