forked from tildetown/town
fix var
parent
8138733bd1
commit
9464d393e3
|
@ -10,8 +10,6 @@ import (
|
|||
townUser "git.tilde.town/tildetown/town/user"
|
||||
)
|
||||
|
||||
const requestPath = "/town/requests"
|
||||
|
||||
func _main(args []string) error {
|
||||
currentUser, err := user.Current()
|
||||
if err != nil {
|
||||
|
@ -28,12 +26,12 @@ func _main(args []string) error {
|
|||
|
||||
errs := []error{}
|
||||
|
||||
err = request.ProcessGitea(requestPath)
|
||||
err = request.ProcessGitea(request.RequestPath)
|
||||
if err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
|
||||
err = request.ProcessGemini(requestPath)
|
||||
err = request.ProcessGemini(request.RequestPath)
|
||||
if err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ func ProcessGitea(rp string) error {
|
|||
return errors.New("need GITEA_TOKEN")
|
||||
}
|
||||
|
||||
gtPath := filepath.Join(requestPath, "gitea")
|
||||
gtPath := filepath.Join(RequestPath, "gitea")
|
||||
|
||||
files, err := ioutil.ReadDir(gtPath)
|
||||
if err != nil {
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
package request
|
||||
|
||||
const RequestPath = "/town/requests"
|
||||
|
|
Loading…
Reference in New Issue