build: run mv outside the OLM_CATALOG_DIR

The command needs to be run outside the OLM_CATALOG_DIR as it already
contains that directory in its paths.

Signed-off-by: Boris Ranto <branto@redhat.com>
This commit is contained in:
Boris Ranto committed 2021-12-06 22:54:05 +01:00
1 parent 117229a6b7
commit 4cb8bb3bec
1 file changed
+2 -1
+2 -1
View File
@@ -118,9 +118,10 @@ function cleanup() {
function generate_csv(){
pushd "$OLM_CATALOG_DIR" &> /dev/null
"${OP_SDK_CMD[@]}" "$VERSION"
mv "$CSV_BUNDLE_PATH/olm.clusterserviceversion.yaml" "$CSV_FILE_NAME"
popd &> /dev/null
mv "$CSV_BUNDLE_PATH/olm.clusterserviceversion.yaml" "$CSV_FILE_NAME"
# cleanup to get the expected state before merging the real data from assembles
"${YQ_CMD_DELETE[@]}" "$CSV_FILE_NAME" 'spec.icon[*]'
"${YQ_CMD_DELETE[@]}" "$CSV_FILE_NAME" 'spec.installModes[*]'