Skip to content

Commit

Permalink
Fixed bug related to deployment and ssh private key
Browse files Browse the repository at this point in the history
  • Loading branch information
darxkies committed Dec 17, 2017
1 parent 6a442e8 commit 525e13c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/k8s-tew/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"os"
"path"

"github.com/darxkies/k8s-tew/deployment"

Expand Down Expand Up @@ -31,6 +32,6 @@ var deployCmd = &cobra.Command{
}

func init() {
deployCmd.Flags().StringVarP(&identityFile, "identity-file", "i", "~/.ssh/id_rsa", "SSH identity file")
deployCmd.Flags().StringVarP(&identityFile, "identity-file", "i", path.Join(os.Getenv("HOME"), ".ssh/id_rsa"), "SSH identity file")
RootCmd.AddCommand(deployCmd)
}

0 comments on commit 525e13c

Please sign in to comment.