diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2010-11-11 18:09:36 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2010-11-11 18:09:36 -0800 |
commit | fc4c4bcab64721d803df909652ecc713d10f1f5d (patch) | |
tree | 419f24fcae8f70cbf469d95a36d919216100b8dc /etc/bash_completion.d/20vyatta-cfg | |
parent | 6bc4d8fe1f5065080ed5bd157bc5e40519b3d184 (diff) | |
download | vyatta-cfg-fc4c4bcab64721d803df909652ecc713d10f1f5d.tar.gz vyatta-cfg-fc4c4bcab64721d803df909652ecc713d10f1f5d.zip |
Add warning when saving if there are uncommitted changes.
Diffstat (limited to 'etc/bash_completion.d/20vyatta-cfg')
-rwxr-xr-x | etc/bash_completion.d/20vyatta-cfg | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index 6553f3b..c62f51a 100755 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -154,6 +154,9 @@ compare () save () { + if vyatta_cli_shell_api sessionChanged; then + echo -e "Warning: you have uncommitted changes that will not be saved.\n" + fi # transform individual args into quoted strings local arg='' local save_cmd="${vyatta_sbindir}/vyatta-save-config.pl" |