From fc4c4bcab64721d803df909652ecc713d10f1f5d Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Thu, 11 Nov 2010 18:09:36 -0800 Subject: Add warning when saving if there are uncommitted changes. --- etc/bash_completion.d/20vyatta-cfg | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc/bash_completion.d') 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" -- cgit v1.2.3