Commit 39f1f11d authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

Remove useless grep in completion script

parent 9ccafea5
No related merge requests found
Showing with 1 addition and 1 deletion
...@@ -73,7 +73,7 @@ _liblinphone_complete() { ...@@ -73,7 +73,7 @@ _liblinphone_complete() {
# echo "yes!$prev_arg $has_not_set_suite" # echo "yes!$prev_arg $has_not_set_suite"
if [ "$prev_arg" = "--test" ] && [ $has_not_set_suite = 0 ]; then if [ "$prev_arg" = "--test" ] && [ $has_not_set_suite = 0 ]; then
suite_name=$(echo $@ | sed -nE 's/.*--suite (.*) (--.*)$/\1/p' |sed "s@\\\\@@g") suite_name=$(echo $@ | sed -nE 's/.*--suite (.*) (--.*)$/\1/p' |sed "s@\\\\@@g")
completions="$($program --list-tests $suite_name | grep "^$latest_arg")" completions="$($program --list-tests $suite_name)"
elif [ "$prev_arg" = "--suite" ] || [ "$prev_arg" = "--list-tests" ]; then elif [ "$prev_arg" = "--suite" ] || [ "$prev_arg" = "--list-tests" ]; then
completions="$($program --list-suites)" completions="$($program --list-suites)"
fi fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment