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