diff --git a/.gitignore b/.gitignore index 0865e5e..6d08a54 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,9 @@ *.code-workspace .idea .DS_Store +pkg/* +src/* +!src/cmd/* +!src/.cobra.yml +!src/serverauth.go +serverauth diff --git a/src/cmd/add.go b/src/cmd/add.go index 71e9793..96cc6ac 100644 --- a/src/cmd/add.go +++ b/src/cmd/add.go @@ -75,7 +75,7 @@ var addCmd = &cobra.Command{ homeDir := u.HomeDir keysDir := homeDir + "/.ssh" keysFile := keysDir + "/authorized_keys" - backupKeysFile := keysDir + "/.ssh/authorized_keys.bak" + backupKeysFile := keysDir + "/authorized_keys.bak" // If the .ssh directory doesnt exist, create it and set it to be owned by the user if _, keysDirErr := os.Stat(keysDir); os.IsNotExist(keysDirErr) {