diff options
Diffstat (limited to 'etc/bash_completion.d/vyatta-cfg')
-rwxr-xr-x | etc/bash_completion.d/vyatta-cfg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index 213dad9..1a543dc 100755 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -333,9 +333,9 @@ vyatta_compare_complete () print_commit_log COMPREPLY=( "" " " ) elif [ $COMP_CWORD -eq 2 -a -z "${COMP_WORDS[2]}" ]; then - if [[ "${COMP_WORDS[1]}" == "saved" ]]; then - echo "Possible completions:" - echo -e " <Enter>\tCompare working and saved configurations" + if [[ "saved" =~ "${COMP_WORDS[1]}" ]]; then + echo -e "\nPossible completions:" + echo -en " <Enter>\tCompare working and saved configurations" COMPREPLY=( "" " " ) eval $restore_shopts return |