(scriptType, slug string)
| 213 | } |
| 214 | |
| 215 | func buildScriptPath(scriptType, slug string) string { |
| 216 | switch scriptType { |
| 217 | case "lxc": |
| 218 | return fmt.Sprintf("ct/%s.sh", slug) |
| 219 | case "vm": |
| 220 | return fmt.Sprintf("vm/%s.sh", slug) |
| 221 | case "addon": |
| 222 | return fmt.Sprintf("tools/addon/%s.sh", slug) |
| 223 | case "pve": |
| 224 | return fmt.Sprintf("tools/pve/%s.sh", slug) |
| 225 | case "turnkey": |
| 226 | return "turnkey/turnkey.sh" |
| 227 | default: |
| 228 | return "" |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | func normalizeScriptType(scriptType string) string { |
| 233 | switch scriptType { |
no outgoing calls
no test coverage detected