diff options
-rw-r--r-- | tools/perf/perf-completion.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/perf-completion.sh b/tools/perf/perf-completion.sh index 3e25d3ea17f9..7b98ae48f0bf 100644 --- a/tools/perf/perf-completion.sh +++ b/tools/perf/perf-completion.sh | |||
@@ -130,7 +130,7 @@ __perf_main () | |||
130 | # Skip options backward and find the last perf command | 130 | # Skip options backward and find the last perf command |
131 | __perf_prev_skip_opts | 131 | __perf_prev_skip_opts |
132 | # List perf subcommands or long options | 132 | # List perf subcommands or long options |
133 | if [ $cword -eq 1 ]; then | 133 | if [ -z $prev_skip_opts ]; then |
134 | if [[ $cur == --* ]]; then | 134 | if [[ $cur == --* ]]; then |
135 | cmds=$($cmd --list-opts) | 135 | cmds=$($cmd --list-opts) |
136 | else | 136 | else |