summaryrefslogtreecommitdiff
path: root/init_dir.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-09-06 11:35:25 +0200
committerJakob Unterwurzacher2020-09-06 11:35:25 +0200
commit993b19c19c26eac480d88cc67bfe7455e67faada (patch)
treed453b62170f25ed64c1adc73fc7c56cd35e1f2dd /init_dir.go
parent598e5f385e4b6cc135a78e708112ade96edbb35c (diff)
gocryptfs -init: fix wrong exit code on non-empty dir
Fixes https://github.com/rfjakob/gocryptfs/pull/503
Diffstat (limited to 'init_dir.go')
-rw-r--r--init_dir.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/init_dir.go b/init_dir.go
index 5939598..19fabcf 100644
--- a/init_dir.go
+++ b/init_dir.go
@@ -63,7 +63,7 @@ func initDir(args *argContainer) {
err = isEmptyDir(args.cipherdir)
if err != nil {
tlog.Fatal.Printf("Invalid cipherdir: %v", err)
- os.Exit(exitcodes.Init)
+ os.Exit(exitcodes.CipherDir)
}
}
// Choose password for config file