aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.go b/config.go
index fbfcfe0..29a63e3 100644
--- a/config.go
+++ b/config.go
@@ -148,6 +148,10 @@ func (cfg *config) get(name string) (issuer *Issuer, err error) {
// save the config to file.
func (cfg *config) save() (err error) {
+ if len(cfg.file) == 0 {
+ return nil
+ }
+
var (
logp = `save`