diff options
author | Jakob Unterwurzacher | 2016-06-04 15:11:18 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-06-04 15:24:42 +0200 |
commit | 281bb8daf080d1b38a8079f5809232edc68aab0d (patch) | |
tree | 8e52a3fc8a1919a1ee3cb391768ac1b3f08d4977 /main.go | |
parent | 72f8915843c5308336534d90286d2199c5d8932c (diff) |
main: don't tell the user to choose a password when -extpass is used
Instead, print this:
Using password provided via -extpass.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 { |