Skip to content

Commit

Permalink
ssh key path
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivam-nagar23 committed Oct 28, 2024
1 parent e264092 commit 92ac6c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-sensor/pkg/git/Util.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ func CheckIfSshPrivateKeyExists(gitProviderId int) bool {
}

func CreateOrUpdateSshPrivateKeyOnDisk(gitProviderId int, sshPrivateKeyContent string) error {
sshPrivateKeyFolderPath := path.Join(SSH_PRIVATE_KEY_DIR, strconv.Itoa(gitProviderId))
sshPrivateKeyFilePath := path.Join(sshPrivateKeyFolderPath, SSH_PRIVATE_KEY_FILE_NAME)
sshPrivateKeyFolderPath, sshPrivateKeyFilePath := getSSHPrivateKeyFolderAndFilePath(gitProviderId)

// if file exists then delete file
if _, err := os.Stat(sshPrivateKeyFilePath); os.IsExist(err) {
Expand Down

0 comments on commit 92ac6c0

Please # to comment.