From df5b2994f69f68fca361d2707d067e883dea2a56 Mon Sep 17 00:00:00 2001 From: vi'01-1'et <33045716+01-1@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:39:23 -0400 Subject: [PATCH] Update cli.go to use inline environment variables instead of export Also removed unnecessary quotes --- src/cli/cli.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cli/cli.go b/src/cli/cli.go index c695def0..30c28f7e 100644 --- a/src/cli/cli.go +++ b/src/cli/cli.go @@ -392,8 +392,7 @@ func send(c *cli.Context) (err error) { fmt.Printf(`On UNIX systems, to send with a custom code phrase, you need to set the environmental variable CROC_SECRET: - export CROC_SECRET="****" - croc send file.txt + CROC_SECRET=**** croc send file.txt Or you can have the code phrase automatically generated: @@ -609,8 +608,7 @@ func receive(c *cli.Context) (err error) { fmt.Printf(`On UNIX systems, to receive with croc you either need to set a code phrase using your environmental variables: - export CROC_SECRET="****" - croc + CROC_SECRET=**** croc Or you can specify the code phrase when you run croc without declaring the secret on the command line: