diff --git a/README.md b/README.md index cfcd0d8d..dd91b817 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,13 @@ curl https://getcroc.schollz.com | bash ### On macOS Using [Homebrew](https://brew.sh/): + ```bash brew install croc ``` Using [MacPorts](https://www.macports.org/): + ```bash sudo port selfupdate sudo port install croc diff --git a/src/cli/cli.go b/src/cli/cli.go index be3b0d71..12bb3652 100644 --- a/src/cli/cli.go +++ b/src/cli/cli.go @@ -141,7 +141,7 @@ func Run() (err error) { if classicInsecureMode { // classic mode not enabled fmt.Print(`Classic mode is currently ENABLED. - + Disabling this mode will prevent the shared secret from being visible on the host's process list when passed via the command line. On a multi-user system, this will help ensure that other local users cannot @@ -166,7 +166,7 @@ Do you wish to continue to DISABLE the classic mode? (y/N) `) // enable classic mode // touch the file fmt.Print(`Classic mode is currently DISABLED. - + Please note that enabling this mode will make the shared secret visible on the host's process list when passed via the command line. On a multi-user system, this could allow other local users to access the @@ -404,7 +404,7 @@ func send(c *cli.Context) (err error) { if (!(runtime.GOOS == "windows") && c.IsSet("code")) || os.Getenv("CROC_SECRET") != "" { crocOptions.SharedSecret = os.Getenv("CROC_SECRET") if crocOptions.SharedSecret == "" { - fmt.Printf(`On UNIX systems, to send with a custom code phrase, + fmt.Printf(`On UNIX systems, to send with a custom code phrase, you need to set the environmental variable CROC_SECRET: CROC_SECRET=**** croc send file.txt @@ -412,7 +412,7 @@ you need to set the environmental variable CROC_SECRET: Or you can have the code phrase automatically generated: croc send file.txt - + Or you can go back to the classic croc behavior by enabling classic mode: croc --classic @@ -660,15 +660,15 @@ func receive(c *cli.Context) (err error) { } else if !(runtime.GOOS == "windows") && crocOptions.SharedSecret != "" && !classicInsecureMode { crocOptions.SharedSecret = os.Getenv("CROC_SECRET") if crocOptions.SharedSecret == "" { - fmt.Printf(`On UNIX systems, to receive with croc you either need + fmt.Printf(`On UNIX systems, to receive with croc you either need to set a code phrase using your environmental variables: - - 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: - croc + croc Enter receive code: **** Or you can go back to the classic croc behavior by enabling classic mode: diff --git a/src/compress/compress.go b/src/compress/compress.go index 33438222..465f2c99 100644 --- a/src/compress/compress.go +++ b/src/compress/compress.go @@ -43,7 +43,7 @@ func compress(src []byte, dest io.Writer, level int) { compressor.Close() } -// compress uses flate to decompress an io.Reader +// decompress uses flate to decompress an io.Reader func decompress(src io.Reader, dest io.Writer) { decompressor := flate.NewReader(src) if _, err := io.Copy(dest, decompressor); err != nil {