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:
parent
9cd8bb080f
commit
01e4038c9a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue