Skip to content

Commit

Permalink
Issue #44 - better output for creds vs netrc
Browse files Browse the repository at this point in the history
  • Loading branch information
gondor committed Jul 2, 2016
1 parent 22f77f6 commit 56637b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion netshare/netshare.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ func execCIFS(cmd *cobra.Command, args []string) {
creds := drivers.NewCifsCredentials(user, pass, domain, security)

d := drivers.NewCIFSDriver(rootForType(drivers.CIFS), creds, netrc, options)
startOutput(fmt.Sprintf("CIFS :: %s, netrc: %s, opts: %s", creds, netrc, options))
if len(user) > 0 {
startOutput(fmt.Sprintf("CIFS :: %s, opts: %s", creds, options))
} else {
startOutput(fmt.Sprintf("CIFS :: netrc: %s, opts: %s", netrc, options))
}
start(drivers.CIFS, d)
}

Expand Down

0 comments on commit 56637b9

Please sign in to comment.