Fix CI
the build was successful Details

This commit is contained in:
Antoine Bartuccio 2018-07-25 14:12:52 +02:00
parent d43ffcb445
commit e1d790e3fd
Signed by: klmp200
GPG Key ID: E7245548C53F904B
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ pipeline:
commands:
- go get -v -d ./...
- sh build_plugins.sh
- go test ./...
- go test . ./commands ./settings ./plugin_manager/ ./shared/
publish:
image: plugins/docker
repo: klmp200/alfred

View File

@ -7,6 +7,7 @@ package plugin_manager
import (
tb "gopkg.in/tucnak/telebot.v2"
"log"
"path/filepath"
"strings"
"sync"
)
@ -30,7 +31,7 @@ func Init(_pluginDir string, bot *tb.Bot) {
context = bot
for _, fileName := range GetSoFiles(pluginDir) {
var p PluginCtrl
p.plugin = LoadSoFile(pluginDir + "/" + fileName)
p.plugin = LoadSoFile(filepath.Join(pluginDir, fileName))
if p.plugin != nil {
p.running = false
p.enable = true