commit a7fe01e

chld  ·  2026-02-07 02:27:22 +0000 UTC
parent 6119057
ok
1 files changed,  +12, -0
+12, -0
 1@@ -1,10 +1,13 @@
 2 package dgrb
 3 
 4 import (
 5+	"fmt"
 6 	"git.sr.ht/~chld/dgr/cmd"
 7+	"io/fs"
 8 	"os"
 9 	"os/exec"
10 	"path/filepath"
11+	"strings"
12 )
13 
14 func Inst(pkg string) {
15@@ -29,5 +32,14 @@ func Inst(pkg string) {
16 		dgr.Die("failed to copy package files to root", os.Getenv("DTR_ROOT"), 1)
17 	} else {
18 		dgr.Msg("installing", pkg)
19+
20+		filepath.WalkDir(strings.ReplaceAll(pkginst, "*", ""), func(path string, d fs.DirEntry, err error) error {
21+			if err != nil {
22+				fmt.Println(err)
23+			}
24+			fmt.Println(path)
25+			return nil
26+		})
27+
28 	}
29 }