mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-27 20:36:29 -04:00
Allow not re-prompting for the RCW passphrase
This commit is contained in:
@@ -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