1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

don't print full executable path logging key import

This commit is contained in:
Jörg Thalheim 2020-07-30 16:19:51 +01:00
parent 9cd8bb080f
commit 01e4038c9a
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -11,6 +11,7 @@ import (
"io/ioutil" "io/ioutil"
"os" "os"
"os/user" "os/user"
"path"
"path/filepath" "path/filepath"
"strconv" "strconv"
"strings" "strings"
@ -452,7 +453,7 @@ func importSSHKeys(keyPaths []string, gpgHome string) error {
return fmt.Errorf("Cannot write secring: %w", err) return fmt.Errorf("Cannot write secring: %w", err)
} }
fmt.Printf("%s: Imported %s with fingerprint %s\n", os.Args[0], path, hex.EncodeToString(gpgKey.PrimaryKey.Fingerprint[:])) fmt.Printf("%s: Imported %s with fingerprint %s\n", path.Base(os.Args[0]), p, hex.EncodeToString(gpgKey.PrimaryKey.Fingerprint[:]))
} }
return nil return nil