From 8f11e78b520899410b9fd4691d47fe5130a6562d Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Tue, 4 Jun 2024 09:39:58 +0200 Subject: [PATCH] fix zip command when creating windows zip --- images/modules/com.redhat.osl.cli.packager/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/modules/com.redhat.osl.cli.packager/install.sh b/images/modules/com.redhat.osl.cli.packager/install.sh index d22fd4652..b2fdf08db 100755 --- a/images/modules/com.redhat.osl.cli.packager/install.sh +++ b/images/modules/com.redhat.osl.cli.packager/install.sh @@ -33,4 +33,4 @@ tar --transform='flags=r;s|kn-workflow-linux-arm64|kn|' -zcf kn-workflow-linux-a tar --transform='flags=r;s|kn-workflow-darwin-amd64|kn|' -zcf kn-workflow-macos-amd64.tar.gz kn-workflow-darwin-amd64 LICENSE tar --transform='flags=r;s|kn-workflow-darwin-arm64|kn|' -zcf kn-workflow-macos-arm64.tar.gz kn-workflow-darwin-arm64 LICENSE -mkdir "${KN_WORK_DIR}/windows" && mv kn-workflow-windows-amd64.exe "${KN_WORK_DIR}/windows/kn.exe" && cp LICENSE "${KN_WORK_DIR}/windows/" && zip --quiet --junk-path - "${KN_WORK_DIR}/windows/*" > kn-workflow-windows-amd64.zip +mkdir "${KN_WORK_DIR}/windows" && mv kn-workflow-windows-amd64.exe "${KN_WORK_DIR}/windows/kn.exe" && cp LICENSE "${KN_WORK_DIR}/windows/" && zip -jrq kn-workflow-windows-amd64.zip "${KN_WORK_DIR}/windows" \ No newline at end of file