Skip to content

Commit e427302

Browse files
committed
change sed command to be posix compliant
The command \+ in sed is non-portable. The posix compliant version of this command is \{1,\} This change allows this script to run on a mac too (which uses BSD sed) See https://riptutorial.com/sed/topic/9436/bsd-macos-sed-vs--gnu-sed-vs--the-posix-sed-specification Signed-off-by: John Hunkins <[email protected]>
1 parent b290157 commit e427302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/copy_crds.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ CRD_PATH="${SCRIPT_ROOT}/vendor/github.com/operator-framework/api/crds"
1010
rm "${SCRIPT_ROOT}"/deploy/chart/crds/*.yaml
1111
for f in "${CRD_PATH}"/*.yaml ; do
1212
echo "copying ${f}"
13-
cp "${f}" "${SCRIPT_ROOT}/deploy/chart/crds/0000_50_olm_00-$(basename "$f" | sed 's/^.*_\([^.]\+\)\.yaml/\1.crd.yaml/')"
13+
cp "${f}" "${SCRIPT_ROOT}/deploy/chart/crds/0000_50_olm_00-$(basename "$f" | sed 's/^.*_\([^.]\{1,\}\)\.yaml/\1.crd.yaml/')"
1414
done

0 commit comments

Comments
 (0)