diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2011-01-17 19:29:29 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2011-01-20 18:16:33 -0800 |
commit | c485d819ad0109ce5ed9655752a51e273b573301 (patch) | |
tree | 73fae1866fb6b331d047221d5079c3e1cc5ff2b1 /etc | |
parent | 28a23d298a9af11a8fa7ccf3d2de8ffa1a5d4802 (diff) | |
download | vyatta-cfg-c485d819ad0109ce5ed9655752a51e273b573301.tar.gz vyatta-cfg-c485d819ad0109ce5ed9655752a51e273b573301.zip |
fix for bug 6690
* return to top level before saving (to be consistent with load).
(cherry picked from commit bc0c9107d5f5cda86646b8162950938e52a2333f)
Diffstat (limited to 'etc')
-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" |