mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-10-27 06:09:56 -04:00
Allow not re-prompting for the RCW passphrase
This commit is contained in:
1 parent
162e277ad2
commit
26db43eb29
1 file changed
+4
@@ -13,6 +13,7 @@ import (
|
||||
)
|
||||
|
||||
var Daemonize = true
|
||||
var RetryPassphrase = true
|
||||
|
||||
// RCWDArgument reads the passphrase from stdin and caches it via an RCW daemon.
|
||||
func RCWDArgument() {
|
||||
@@ -72,6 +73,9 @@ func launchRCWDProcess() []byte {
|
||||
break
|
||||
}
|
||||
fmt.Println(back.AnsiError + "Incorrect passphrase" + back.AnsiReset)
|
||||
if !RetryPassphrase {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if Daemonize {
|
||||
|
||||
Reference in new issue
Block a user