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:04:45 -0800 |
commit | e4774c5c6fbc1662047ea31ef2d0d67369a22082 (patch) | |
tree | da04a73a8a8b49c2a9537843c808c1f469c3429d /etc | |
parent | b99d20320beaa93b919b7af9a8cc750adad3deb4 (diff) | |
download | vyatta-cfg-e4774c5c6fbc1662047ea31ef2d0d67369a22082.tar.gz vyatta-cfg-e4774c5c6fbc1662047ea31ef2d0d67369a22082.zip |
Fix 6727: should have a friendlier message on rollback error.
(cherry picked from commit e973b4d3ab1067525b4439a34598308d17065233)
Diffstat (limited to 'etc')
-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 "$@" } |