@@ -141,7 +141,7 @@ func Run() (err error) {
141
141
if classicInsecureMode {
142
142
// classic mode not enabled
143
143
fmt .Print (`Classic mode is currently ENABLED.
144
-
144
+
145
145
Disabling this mode will prevent the shared secret from being visible
146
146
on the host's process list when passed via the command line. On a
147
147
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) `)
166
166
// enable classic mode
167
167
// touch the file
168
168
fmt .Print (`Classic mode is currently DISABLED.
169
-
169
+
170
170
Please note that enabling this mode will make the shared secret visible
171
171
on the host's process list when passed via the command line. On a
172
172
multi-user system, this could allow other local users to access the
@@ -404,15 +404,15 @@ func send(c *cli.Context) (err error) {
404
404
if (! (runtime .GOOS == "windows" ) && c .IsSet ("code" )) || os .Getenv ("CROC_SECRET" ) != "" {
405
405
crocOptions .SharedSecret = os .Getenv ("CROC_SECRET" )
406
406
if crocOptions .SharedSecret == "" {
407
- fmt .Printf (`On UNIX systems, to send with a custom code phrase,
407
+ fmt .Printf (`On UNIX systems, to send with a custom code phrase,
408
408
you need to set the environmental variable CROC_SECRET:
409
409
410
410
CROC_SECRET=**** croc send file.txt
411
411
412
412
Or you can have the code phrase automatically generated:
413
413
414
414
croc send file.txt
415
-
415
+
416
416
Or you can go back to the classic croc behavior by enabling classic mode:
417
417
418
418
croc --classic
@@ -660,15 +660,15 @@ func receive(c *cli.Context) (err error) {
660
660
} else if ! (runtime .GOOS == "windows" ) && crocOptions .SharedSecret != "" && ! classicInsecureMode {
661
661
crocOptions .SharedSecret = os .Getenv ("CROC_SECRET" )
662
662
if crocOptions .SharedSecret == "" {
663
- fmt .Printf (`On UNIX systems, to receive with croc you either need
663
+ fmt .Printf (`On UNIX systems, to receive with croc you either need
664
664
to set a code phrase using your environmental variables:
665
-
666
- CROC_SECRET=**** croc
665
+
666
+ CROC_SECRET=**** croc
667
667
668
668
Or you can specify the code phrase when you run croc without
669
669
declaring the secret on the command line:
670
670
671
- croc
671
+ croc
672
672
Enter receive code: ****
673
673
674
674
Or you can go back to the classic croc behavior by enabling classic mode:
0 commit comments