Skip to content

Commit

Permalink
Merge pull request #11 from tvbeat/fix-windows-delimiter
Browse files Browse the repository at this point in the history
fix windows delimiter
  • Loading branch information
aanderse authored Oct 18, 2024
2 parents 5bd70a4 + 9b5a59c commit 869daf9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ func configAction(cCtx *cli.Context) error {
PowerShell: runtime.GOOS == "windows",
Suffix: suffix,
}

data.Token = filepath.ToSlash(data.Token)
data.IdentityFile = filepath.ToSlash(data.IdentityFile)

// use ~/variable expansion inside ~/.ssh configuration files if possible
if strings.HasPrefix(cacheDir, userHomeDir) {
Expand Down

0 comments on commit 869daf9

Please sign in to comment.