diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2011-01-17 19:29:29 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2011-01-17 19:29:29 -0800 |
commit | bc0c9107d5f5cda86646b8162950938e52a2333f (patch) | |
tree | 89e8f7d171b1443f757450962facc51e8c08ea3d | |
parent | df073448c13850215d01dfa5f324ce7861429842 (diff) | |
download | vyatta-cfg-bc0c9107d5f5cda86646b8162950938e52a2333f.tar.gz vyatta-cfg-bc0c9107d5f5cda86646b8162950938e52a2333f.zip |
fix for bug 6690
* return to top level before saving (to be consistent with load).
-rwxr-xr-x | etc/bash_completion.d/vyatta-cfg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index 83be149..7b44f35 100755 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -174,6 +174,8 @@ save () if vyatta_cli_shell_api sessionChanged; then echo -e "Warning: you have uncommitted changes that will not be saved.\n" fi + # return to top level. + reset_edit_level # transform individual args into quoted strings local arg='' local save_cmd="${vyatta_sbindir}/vyatta-save-config.pl" |