diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2011-01-11 16:17:11 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2011-01-11 16:17:11 -0800 |
commit | 2b9bd473a6341d5d2681e59120a4e689a52b25c5 (patch) | |
tree | 42cb3dc322c1b055883a891fab355314d4171634 | |
parent | 6447ab2eb6c3b80306802c8121f29de3434235e3 (diff) | |
download | vyatta-cfg-2b9bd473a6341d5d2681e59120a4e689a52b25c5.tar.gz vyatta-cfg-2b9bd473a6341d5d2681e59120a4e689a52b25c5.zip |
Fix 6671: commit-confirm checks if there is any configuraion change after confirm is requested
-rwxr-xr-x | etc/bash_completion.d/vyatta-cfg | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index 0b37f1c..83be149 100755 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -101,6 +101,10 @@ show () commit () { + if ! vyatta_cli_shell_api sessionChanged; then + echo "No configuration changes to commit" + return 1; + fi local comment="commit" local next=0 local -a args=() @@ -128,6 +132,10 @@ commit () commit-confirm () { + if ! vyatta_cli_shell_api sessionChanged; then + echo "No configuration changes to commit" + return 1; + fi local -a args=() local first=1 local minutes=10 |