lockbox

password manager
Log | Files | Refs | README | LICENSE

commit f25ccf24c3930d65fcea03630669ad3ba62332f9
parent 245e92f233f1590b86a50c3a0622fccf46dd8ccf
Author: Sean Enck <sean@ttypty.com>
Date:   Sat, 16 Jul 2022 13:19:17 -0400

check for file before running

Diffstat:
Mcmd/lb/main.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/cmd/lb/main.go b/cmd/lb/main.go @@ -277,6 +277,9 @@ func main() { lib = libExec } tryCommand := fmt.Sprintf(filepath.Join(lib, "lb-%s"), command) + if !misc.PathExists(tryCommand) { + misc.Die("unknown subcommand", errors.New(command)) + } c := exec.Command(tryCommand, args[2:]...) c.Stdout = os.Stdout c.Stderr = os.Stderr