diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-08-01 15:43:13 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-08-01 15:43:13 -0500 |
commit | d1425b3cb28509e31fc5daa0cf734e389ee22250 (patch) | |
tree | daece43df425d6353704d55c76edaec9bdf36970 | |
parent | 6c424e3ac1689473285a0b0ccedd6ab7eb6cfbbb (diff) | |
download | vyatta-cfg-d1425b3cb28509e31fc5daa0cf734e389ee22250.tar.gz vyatta-cfg-d1425b3cb28509e31fc5daa0cf734e389ee22250.zip |
Fix incorrect comp_words check in previous commit. My original implementation used config.boot instead of saved
-rwxr-xr-x | etc/bash_completion.d/vyatta-cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index 7d184f2..c16873f 100755 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -516,7 +516,7 @@ vyatta_compare_complete () print_commit_log COMPREPLY=( "" " " ) elif [ $COMP_CWORD -eq 2 -a -z "${COMP_WORDS[2]}" ]; then - if [[ "${COMP_WORDS[1]}" == "config.boot" ]]; then + if [[ "${COMP_WORDS[1]}" == "saved" ]]; then echo "Possible completions:" echo -e " <enter>\tCompare working and saved configurations" COMPREPLY=( "" " " ) |