We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6cf586 commit 5566a1dCopy full SHA for 5566a1d
1 file changed
cmd/root.go
@@ -14,6 +14,7 @@ import (
14
"net/rpc"
15
"os"
16
"path/filepath"
17
+ "strings"
18
"time"
19
20
"github.com/hashicorp/yamux"
@@ -48,7 +49,11 @@ var rootCmd = &cobra.Command{
48
49
wd := try.To1(os.Getwd())
50
var allow = make([]string, len(files))
51
for i, f := range files {
- allow[i] = filepath.Join(wd, f)
52
+ if strings.HasPrefix(f, "/") {
53
+ allow[i] = f
54
+ } else {
55
+ allow[i] = filepath.Join(wd, f)
56
+ }
57
}
58
59
func() {
0 commit comments