summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-11-11 18:09:36 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-11-11 18:09:36 -0800
commitfc4c4bcab64721d803df909652ecc713d10f1f5d (patch)
tree419f24fcae8f70cbf469d95a36d919216100b8dc /etc
parent6bc4d8fe1f5065080ed5bd157bc5e40519b3d184 (diff)
downloadvyatta-cfg-fc4c4bcab64721d803df909652ecc713d10f1f5d.tar.gz
vyatta-cfg-fc4c4bcab64721d803df909652ecc713d10f1f5d.zip
Add warning when saving if there are uncommitted changes.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg3
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"