(ctx context.Context, arg string, args ...string)
| 185 | } |
| 186 | |
| 187 | func runCmd(ctx context.Context, arg string, args ...string) error { |
| 188 | cmd := exec.CommandContext(ctx, arg, args...) |
| 189 | |
| 190 | cmd.Stdin = os.Stdin |
| 191 | cmd.Stdout = os.Stdout |
| 192 | cmd.Stderr = os.Stderr |
| 193 | |
| 194 | fmt.Fprintf(os.Stderr, "# ---> %s\n", cmd) |
| 195 | return cmd.Run() |
| 196 | } |
| 197 | |
| 198 | func downloadFile(src, dest string, dirPerm, perm os.FileMode) error { |
| 199 | req, err := http.NewRequest(http.MethodGet, src, nil) |