fix(CLI): install cmd path choose empty not use default (#2655)

This commit is contained in:
star liu
2023-05-23 21:59:47 +08:00
committed by GitHub
parent 0f4f2a6672
commit 879283685d

View File

@ -111,6 +111,8 @@ func (s serviceInstall) Run(ctx context.Context) (err error) {
)
if input != "" {
inputID = gconv.Int(input)
} else {
break
}
// Check if out of range.
if inputID >= len(paths) || inputID < 0 {