Skip to content

Commit c97233e

Browse files
authored
Prevent ACS commands starting with sync to get redirected to API discovery (#82)
* Prevent ACS commands starting with sync to get redirected to API discovery * change check
1 parent 6962ac7 commit c97233e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func ExecCmd(args []string) error {
5858
}
5959

6060
command := cmd.FindCommand(args[0])
61-
if command != nil {
61+
if command != nil && !(args[0] == "sync" && len(args) > 1) {
6262
return command.Handle(cmd.NewRequest(command, cfg, args[1:]))
6363
}
6464

0 commit comments

Comments
 (0)