mirror of https://github.com/schollz/croc.git
Merge branch 'master' of github.com:schollz/croc
This commit is contained in:
commit
4481fe2336
4
main.go
4
main.go
|
@ -5,7 +5,7 @@ package main
|
||||||
//go:generate git tag -af v$VERSION -m "v$VERSION"
|
//go:generate git tag -af v$VERSION -m "v$VERSION"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"log"
|
||||||
|
|
||||||
"github.com/schollz/croc/v8/src/cli"
|
"github.com/schollz/croc/v8/src/cli"
|
||||||
)
|
)
|
||||||
|
@ -28,6 +28,6 @@ func main() {
|
||||||
// }
|
// }
|
||||||
// }()
|
// }()
|
||||||
if err := cli.Run(); err != nil {
|
if err := cli.Run(); err != nil {
|
||||||
fmt.Println(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -225,9 +225,9 @@ func send(c *cli.Context) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer func() {
|
defer func() {
|
||||||
err = os.Remove(fnames[0])
|
e := os.Remove(fnames[0])
|
||||||
if err != nil {
|
if e != nil {
|
||||||
log.Error(err)
|
log.Error(e)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
} else if c.String("text") != "" {
|
} else if c.String("text") != "" {
|
||||||
|
@ -236,9 +236,9 @@ func send(c *cli.Context) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer func() {
|
defer func() {
|
||||||
err = os.Remove(fnames[0])
|
e := os.Remove(fnames[0])
|
||||||
if err != nil {
|
if e != nil {
|
||||||
log.Error(err)
|
log.Error(e)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue