File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
pkg/cmd/remoteaccess/connect/ssh Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ tasks:
193193 - goreleaser build --clean --snapshot --single-target --id {{.OS_NAME}} {{.CLI_ARGS}}
194194 - rm -f .bin/c8y
195195 - mkdir -p .bin
196- - cp dist/{{.OS_NAME}}_{{OS}}_{{.ARCH_NAME}}/bin/c8y .bin/c8y
196+ - cp dist/{{.OS_NAME}}_{{OS}}_{{.ARCH_NAME}}* /bin/c8y .bin/c8y
197197
198198 generate :
199199 desc : Generate the cli code
Original file line number Diff line number Diff line change @@ -107,6 +107,11 @@ func NewCmdSSH(f *cmdutil.Factory) *CmdSSH {
107107func (n * CmdSSH ) GetPortForwarding () string {
108108 // convenience functions to mirror docker port mapping options
109109 portMapping := n .portForwarding
110+
111+ if portMapping == "" {
112+ return portMapping
113+ }
114+
110115 portForwardingParts := strings .Split (portMapping , ":" )
111116 switch len (portForwardingParts ) {
112117 case 1 :
You can’t perform that action at this time.
0 commit comments