aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index 6b3b6b6..e365d48 100644
--- a/main.go
+++ b/main.go
@@ -66,7 +66,11 @@ func initDir(args *argContainer) {
}
// Create gocryptfs.conf
- toggledlog.Info.Printf("Choose a password for protecting your files.")
+ if args.extpass == "" {
+ toggledlog.Info.Printf("Choose a password for protecting your files.")
+ } else {
+ toggledlog.Info.Printf("Using password provided via -extpass.")
+ }
password := readPasswordTwice(args.extpass)
err = configfile.CreateConfFile(args.config, password, args.plaintextnames, args.scryptn)
if err != nil {