sed: 1: "./deploy/overlays/devel ...": invalid command code .
cmoulliard opened this issue · 2 comments
cmoulliard commented
Issue
The following sed commands of the patch-yaml.sh fail on macos machine
find $DIR -path \*development\*.yaml -exec sed -i s%jvm-build-service-image%${JVM_BUILD_SERVICE_IMAGE}% {} \;
find $DIR -path \*development\*.yaml -exec sed -i s%jvm-build-service-cache-image%${JVM_BUILD_SERVICE_CACHE_IMAGE}% {} \;
find $DIR -path \*development\*.yaml -exec sed -i s%jvm-build-service-reqprocessor-image%${JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE}% {} \;
find $DIR -path \*development\*.yaml -exec sed -i s/dev-template/development/ {} \;
find $DIR -path \*development\*.yaml -exec sed -i s/QUAY_TOKEN/${QUAY_TOKEN}/ {} \;
find $DIR -path \*development\*.yaml -exec sed -i s/QUAY_USERNAME/${QUAY_USERNAME}/ {} \;
and generates
find: ./deploy/overlays/development: No such file or directory
find: ./deploy/operator/overlays/development: No such file or directory
sed: 1: "./deploy/overlays/devel ...": invalid command code .
sed: 1: "./deploy/overlays/devel ...": invalid command code .
sed: 1: "./deploy/operator/overl ...": invalid command code .
sed: 1: "./deploy/overlays/devel ...": invalid command code .
sed: 1: "./deploy/overlays/devel ...": invalid command code .
Remark: The issue is perhaps not the sed command but why find
commands reports ./deploy/overlays/development: No such file or directory
Macos's fix: https://stackoverflow.com/questions/19456518/error-when-using-sed-with-find-command-on-os-x-invalid-command-code
rnc commented
@stuartwdouglas Is this resolved with #553 ?
stuartwdouglas commented
yes