File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -322,10 +322,13 @@ if [ ! "${UNPIN_CHART:-}" = "true" ] && [[ "$PINNED_VERSION" != "$PINNED_VERSION
322322 exit 0
323323 fi
324324fi
325- # Ensure the pinned version really doesn't exist already
326- exists=$( helm_oci_chart_exists " $PINNED_OCI_CHART " " $PINNED_VERSION " )
327- if [[ " $exists " = " true" ]]; then
328- log_fatal " Pinned chart $PINNED_VERSION already exists!"
325+
326+ if [ ! " ${UNPIN_CHART:- } " = " true" ]; then
327+ # Ensure the pinned version really doesn't exist already
328+ exists=$( helm_oci_chart_exists " $PINNED_OCI_CHART " " $PINNED_VERSION " )
329+ if [[ " $exists " = " true" ]]; then
330+ log_fatal " Pinned chart $PINNED_VERSION already exists!"
331+ fi
329332fi
330333
331334if [[ " ${DRY_RUN:- } " = " true" ]]; then
You can’t perform that action at this time.
0 commit comments