mirror of
https://github.com/bestnite/sub2sing-box.git
synced 2025-10-27 17:31:17 +00:00
🐛Fix #9
This commit is contained in:
@@ -5,8 +5,9 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sub2sing-box/common"
|
||||
"sub2sing-box/model"
|
||||
|
||||
"github.com/nitezs/sub2sing-box/common"
|
||||
"github.com/nitezs/sub2sing-box/model"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
@@ -79,7 +80,7 @@ func convertRun(cmd *cobra.Command, args []string) {
|
||||
func loadConfig() {
|
||||
if config == "" {
|
||||
if wd, err := os.Getwd(); err == nil {
|
||||
config = filepath.Join(wd, "sub2sing-box.json")
|
||||
config = filepath.Join(wd, "github.com/nitezs/sub2sing-box.json")
|
||||
if _, err := os.Stat(config); os.IsNotExist(err) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"sub2sing-box/api"
|
||||
"github.com/nitezs/sub2sing-box/api"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@@ -2,7 +2,8 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sub2sing-box/constant"
|
||||
|
||||
"github.com/nitezs/sub2sing-box/constant"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user