diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2011-01-24 16:02:47 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2011-01-24 16:02:47 -0800 |
commit | e973b4d3ab1067525b4439a34598308d17065233 (patch) | |
tree | a2068e588d8ec2238b7e714484078eeeaa7407c4 | |
parent | 2a6a264923e318e1faa76f5742fb3dfb94064719 (diff) | |
download | vyatta-cfg-e973b4d3ab1067525b4439a34598308d17065233.tar.gz vyatta-cfg-e973b4d3ab1067525b4439a34598308d17065233.zip |
Fix 6727: should have a friendlier message on rollback error.
-rwxr-xr-x | etc/bash_completion.d/vyatta-cfg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index a72b8c8..87aaae3 100755 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -193,6 +193,10 @@ reboot () rollback () { + if [ $# != 1 ]; then + echo "Error: must include a revision # to rollback to" + return 1; + fi ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=rollback --revnum "$@" } |