Skip to content

Commit

Permalink
fix zip command when creating windows zip
Browse files Browse the repository at this point in the history
  • Loading branch information
rgdoliveira committed Jun 4, 2024
1 parent 4e99c9c commit 8f11e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/modules/com.redhat.osl.cli.packager/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8f11e78

Please sign in to comment.