Skip to content

Commit

Permalink
Allow filename for stdin input
Browse files Browse the repository at this point in the history
  • Loading branch information
andreimarcu committed Nov 5, 2015
1 parent 0e403cc commit a68cf98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions linx.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ func upload(filePath string, deleteKey string, randomize bool, expiry int64, ove
byt, err := ioutil.ReadAll(os.Stdin)
checkErr(err)

fileName = desiredFileName

br := bytes.NewReader(byt)

ssum = sha256sum(br)
Expand Down

0 comments on commit a68cf98

Please sign in to comment.