Closed lukaszstolarczuk closed 2 years ago
utils/docker/run-doc-update.sh
line 35 at r2 (raw file):
It may be simplified to ``` if [[ ${CI_BRANCH} == stable-* ]]; then DOCS_TARGET_DIR=v$(echo ${CI_BRANCH} | cut -d"-" -f2 -s) else DOCS_TARGET_DIR=${CI_BRANCH} fi ``` or even to ``` DOCS_TARGET_DIR=$(echo ${CI_BRANCH} | awk -F '-' '{print $(NF)}' ``` If you may skip `v` at the beginning
with
awk -F 'stable-' '/stable/{printf "v"} {print $(NF)}'
we may preserve v
This change is