Browse Source

Bugfix similar to #19

pull/21/head^2
Gregory Rudolph 5 years ago
parent
commit
05764f85d9
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 4
      cmdUploadFile.go

4
cmdUploadFile.go

@ -20,6 +20,10 @@ func init() { @@ -20,6 +20,10 @@ func init() {
}
func cmdUploadFile(cmd []string) {
if len(cmd) < 2 {
printToView("Feed", fmt.Sprintf("%s%s $filePath $fileName - Upload file from absolute path with optional name", cmdPrefix, cmd[0]))
return
}
filePath := cmd[1]
if !strings.HasPrefix(filePath, "/") {
dir, err := os.Getwd()

Loading…
Cancel
Save