mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
fix(CLI): install cmd path choose empty not use default (#2655)
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user